Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
How to learn Embedded Rust Edition 2021
Search
tomoyuki-nakabayashi
April 27, 2021
Technology
1.6k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
How to learn Embedded Rust Edition 2021
tomoyuki-nakabayashi
April 27, 2021
More Decks by tomoyuki-nakabayashi
See All by tomoyuki-nakabayashi
Nature Remo SDKアップデートの軌跡
tomoyuki
1
1.3k
Embedded-Rust
tomoyuki
1
3.2k
hello-world-on-RTOS
tomoyuki
0
940
Baremetal Rust for RISC-V
tomoyuki
5
1.3k
Other Decks in Technology
See All in Technology
会社説明資料
persolserverworks
0
9.8k
What Is JetBrains Air
x5gtrn
PRO
0
120
初海外で注意すべきこと12選!!!安全快適なre:invent生活にするために
yuuuuuuu168
1
190
野蛮なアジャイル [サイボウズ発!]組織の常識を覆した反骨のスクラム実践記 / Barbaric Agile - Enterprise Agile Study Group
ama_ch
0
120
Post AI時代のリファクタリング実践記 / Refactoring in the post AI era
kaminashi
1
310
S3 Filesで挑む! 八戸せんべい汁の食べ頃問題
usanchuu
0
130
『SAR衛星データ解析入門』のご紹介とその応用
syuchimu
0
130
フロントエンドカンファレンス関西2026 - 速すぎるUIに、待ち時間を
teamlab
PRO
0
210
Persisting Massive Data with Rails ~Designing for 60 billion rows, and fighting the bottlenecks~ Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
0
750
Refining Active Record
shugo
0
180
JAWS-UGグッズ職人仕事の流儀
kentapapa
0
130
スキマバイトという雇用形態は存在しないので、雇用期間1日のアルバイト契約を事業者とワーカーが結ぶ手続きを支えるのがタイミーなんです
akitoshiga
0
220
Featured
See All Featured
WCS-LA-2024
lcolladotor
0
900
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
How to Think Like a Performance Engineer
csswizardry
28
2.9k
Are puppies a ranking factor?
jonoalderson
2
4.1k
From π to Pie charts
rasagy
1
400
ラッコキーワード サービス紹介資料
rakko
2
5.4M
Speed Design
sergeychernyshev
33
2.2k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
460
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
830
Transcript
組込みRustの歩き方 Edition 2021 Shinjuku.rs #15 2021/04/27 中林智之 @tnakabayashi
自己紹介 中林智之 @tnakabayashi Nature株式会社のファームウェアエンジニア 組込みRustをやりたすぎて とうとう書籍を出版してしまった🎉 @ciniml と共著です ステマに来た 2
今日話すこと (9割) 本買って下さい! 3
今日話すこと (1割) • 組込みRustはマイナー ◦ 日本だと10人くらいしかやってない (要出展 ◦ 「組込みRust、そんなのあるの?」状態 •
マイナージャンルの宿命: 入門者が迷子になる問題 ◦ どこから入門すれば良い? ◦ 入門終わった後は? 👉入門方法とその先をまとめる 4
なぜRustで組込みがしたいの? • 組込み開発はC/C++のシェアが圧倒的 ◦ 性能とエコシステムの壁… • RustはC/C++に性能で匹敵、安全!モダン!最高! • 組込みRustはプロダクションレディか? ◦
言語としては大体OK (inline assembly…) ◦ エコシステム発展するとなお良し ◦ 圧倒的人口不足…! 詳細は基礎から学ぶ 組込みRust参照! 5
2021年に組込みRustを始めるには? まず使える教材をまとめてみましょう 6
Rustを学ぶ TRPL (The Rust Programming Language) 実践 Rust 入門 実践
Rust プログラミング入門 プログラミングRust Rust を始めるための資料集 : https://blog-dry.com/entry/2021/01/23/141936 7
組込みRustを学ぶ The Embedded Rust Book The Discovery Book The Embedonomicon
Knurling-book • 技術同人誌 ◦ Rustで始める自作組込みOS入門 ◦ Rust on Bare-metal Raspberry Pi ◦ など 組込みRust 3部作 8
教材のマッピング Rust 組込み Rust TRPL 実践Rust入門 組込みRust 3部作 Knurling-book 実践Rustプログラミング入門
プログラミングRust 9
教材のマッピング Rust TRPL 実践Rust入門 組込みRust 3部作 Knurling-book 組込み Rust 実践Rustプログラミング入門
プログラミングRust 10
教材のマッピング Rust TRPL 実践Rust入門 組込みRust 3部作 Knurling-book 組込み Rust 実践Rustプログラミング入門
プログラミングRust 11
教材のマッピング Rust TRPL 実践Rust入門 組込みRust 3部作 Knurling-book 重さ (物 理)
誰かーここも頼む! 組込み Rust 実践Rustプログラミング入門 プログラミングRust 競合が居ないだけで需要があるとは言っていない! 12
基礎から学ぶ 組込みRust の内容紹介 Wio Terminalを題材にRustや組込みや組込みRustを学ぶ! • LEDとボタン / GPIO •
シリアル通信 / UART • タイマ / 割り込み • ブザー / PWM • 光センサ / ADC • 加速度センサ / I2C • 液晶ディスプレイ / SPI 組込みRustのOSやフレームワークのうち以下を中心に解説 - embedded-hal (https://github.com/rust-embedded/embedded-hal) - atsamd-rs (https://github.com/atsamd-rs/atsamd) - embedded-graphics (https://github.com/embedded-graphics/embedded-graphics) 13
基礎から学ぶ 組込みRust の内容紹介 →Rustの文法解説もある →組込みシステムとは?から書いている →Linux / MacOS / Windows
の環境構築手順もある! →誤植もある😫 申し訳ねぇ! →サポートサイトに正誤表もある! https://github.com/tomoyuki-nakabayashi/Embedded-Rust-f rom-Basics Rustを知らない組込み屋さんはもちろん、 組込み経験なしな人向けの本でもある 14
グラフィカルに楽しむ embedded-graphics けっこう使える (ド ライバの性能問題は若干ある) →日本語情報がない (まじでない) 私 私 私
井田さん graphicsって素敵やん? 15
最後はアプリ作成 Wio Terminal に搭載されているデバイスとグラフィクスを組 み合わせて遊ぶ! 詳しくは書籍で! 16
閑話休題: やり残したこと ネットワーク (せっかく WiFi と Bluetooth 使えるデバイスなのに! 低レイヤドライバの作り方 別ボードへの移植
便利な開発ツールの紹介 C FFI 17
基礎から学ぶ 組込みRustの次は… もっとRustしたい人向け The Rust Programming Language - ド安定 -
webで見れる 実践Rust入門 - Rustらしいプログラムの書き方が学 べる 実践Rustプログラミング入門 - 幅広いジャンルが楽しめる プログラミングRust - ちょっと内容が古め (2nd edition 2021/06) - 標準ライブラリとか詳しい 18
基礎から学ぶ 組込みRustの次は… もっと組込みRustしたい人向け Knurling-book - 最新コンテンツ以外は無料公開 - ツールの体験が良い - 機材のお値段がネック…
スクラッチから作りたい人 - Embedonomicon - rust-raspberrypi-OS-tutorials - Rustで始める自作組込みOS入門 The Embedded Rust Book - C FFI - 最適化 - などあるので一通り目を通 すと幸せになれる ¥12,000 19
さらにその先 - Rust Embedded organizationをチェックする - weekly meeting議事録とか - Ferrous
Systemsのブログを読む - 機能安全サポートとかツールの開発状況など - Knurling-rsにスポンサーして最新の教材を見る - スポンサー料金でコンテンツ制作 - ツール教材の充実に貢献できるのでオススメ! - embedded-hal実装やBSP crateの開発に参加する - 人口が少ないのでやることいっぱい ここまでやると国内の第一人者! 20
まとめ〜組込みRustの歩き方〜 - 『基礎から学ぶ 組込みRust』は good entry point まず買おう! その後のことは後で考えよう! 21
参考 - 基礎から学ぶ 組込みRust のサポートサイトに参考情報のリンクを掲載 - https://github.com/tomoyuki-nakabayashi/Embedded-Rust-from-Basics/blob/main/r eferences.md 22