rust:rust_on_esp_install

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
rust:rust_on_esp_install [2025/06/05 08:43] – [ESP32 Rust 開発環境のインストール] ともやんrust:rust_on_esp_install [2025/06/07 02:55] (現在) – [Rust のインストール] ともやん
行 3: 行 3:
 ソースコード: [[git>esp-rs/book|esp-rs/book: The Rust on ESP Book]]\\ ソースコード: [[git>esp-rs/book|esp-rs/book: The Rust on ESP Book]]\\
 ドキュメント: [[https://docs.esp-rs.org/|Rust on ESP Community | esp-rs]]\\ ドキュメント: [[https://docs.esp-rs.org/|Rust on ESP Community | esp-rs]]\\
 +[[https://docs.esp-rs.org/esp-hal/|docs/esp-hal]]\\
 +[[https://docs.esp-rs.org/esp-idf-hal/esp_idf_hal/|docs/esp-idf-hal]]\\
  
 ===== Rust のインストール ===== ===== Rust のインストール =====
行 12: 行 14:
 <font color="#0087FF"><b>$</b></font> <font color="#26A269">curl</font> <font color="#A347BA">--proto</font> <font color="#A2734C">&apos;=https&apos;</font> <font color="#A347BA">--tlsv1.2</font> https://sh.rustup.rs <font color="#A347BA">-sSf</font> <font color="#12488B"><b>|</b></font> <font color="#26A269">sh</font> <font color="#0087FF"><b>$</b></font> <font color="#26A269">curl</font> <font color="#A347BA">--proto</font> <font color="#A2734C">&apos;=https&apos;</font> <font color="#A347BA">--tlsv1.2</font> https://sh.rustup.rs <font color="#A347BA">-sSf</font> <font color="#12488B"><b>|</b></font> <font color="#26A269">sh</font>
 </pre></html></WRAP> </pre></html></WRAP>
-<WRAP color_result_long><html><pre>+<WRAP color_result_hlong><html><pre>
 <b class=BOLD>info:</b> downloading installer <b class=BOLD>info:</b> downloading installer
  
行 1069: 行 1071:
 </WRAP> </WRAP>
  
-===== probe-rs のインストール ===== 
-公式: [[https://probe.rs/docs/getting-started/installation/|Installation | probe-rs]]\\ 
-<WRAP color_term> 
-<WRAP color_command><html><pre> 
-<font color="#0087FF"><b>$</b></font> <font color="#26A269">curl</font> <font color="#A347BA">--proto</font> <font color="#A2734C">&apos;=https&apos;</font> <font color="#A347BA">--tlsv1.2</font> <font color="#A347BA">-LsSf</font> https://github.com/probe-rs/probe-rs/releases/latest/download/probe-rs-tools-installer.sh <font color="#12488B"><b>|</b></font> <font color="#26A269">sh</font> 
-</pre></html></WRAP> 
-<WRAP color_result><html><pre> 
-downloading probe-rs-tools 0.29.0 x86_64-unknown-linux-gnu 
-installing to /home/tomoyan/.cargo/bin 
-  cargo-embed 
-  cargo-flash 
-  probe-rs 
-everything&apos;s installed! 
-</pre></html></WRAP> 
-</WRAP> 
  
-または\\ +===== espflash のインストール (CP2102 USB to UART Bridge Controller) =====
-<WRAP color_term> +
-<WRAP color_command><html><pre> +
-<font color="#0087FF"><b>$</b></font> <font color="#26A269">cargo</font> binstall probe-rs-tools +
-</pre></html></WRAP> +
-<WRAP color_result><html><pre> +
-<font color="#26A269"> INFO</font> <b>resolve</b><font color="#7D7D7D">: Resolving package: &apos;probe-rs-tools&apos;</font> +
-<font color="#A2734C"> WARN</font> The package probe-rs-tools v0.29.0 (x86_64-unknown-linux-gnu) has been downloaded from github.com +
-<font color="#26A269"> INFO</font> This will install the following binaries: +
-<font color="#26A269"> INFO</font>   - cargo-embed =&gt; /home/tomoyan/.cargo/bin/cargo-embed +
-<font color="#26A269"> INFO</font>   - cargo-flash =&gt; /home/tomoyan/.cargo/bin/cargo-flash +
-<font color="#26A269"> INFO</font>   - probe-rs =&gt; /home/tomoyan/.cargo/bin/probe-rs +
-Do you wish to continue? [yes]/no +
-?  +
-<font color="#26A269"> INFO</font> Installing binaries... +
-<font color="#26A269"> INFO</font> Done in 18.714802133s +
-</pre></html></WRAP> +
-</WRAP> +
- +
-===== espflash のインストール =====+
 公式: [[https://esp-rs.github.io/book/writing-your-own-application/generate-project/esp-template.html#running-the-code|Running the Code - Understanding esp-template - The Rust on ESP Book]] [[gtr>https://esp-rs.github.io/book/writing-your-own-application/generate-project/esp-template.html#running-the-code|翻訳]]\\ 公式: [[https://esp-rs.github.io/book/writing-your-own-application/generate-project/esp-template.html#running-the-code|Running the Code - Understanding esp-template - The Rust on ESP Book]] [[gtr>https://esp-rs.github.io/book/writing-your-own-application/generate-project/esp-template.html#running-the-code|翻訳]]\\
  
行 1164: 行 1132:
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
 espflash 3.3.0 espflash 3.3.0
 +</pre></html></WRAP>
 +</WRAP>
 +
 +===== probe-rs のインストール (Espressif USB JTAG/serial) =====
 +公式: [[https://probe.rs/docs/getting-started/installation/|Installation | probe-rs]]\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269">curl</font> <font color="#A347BA">--proto</font> <font color="#A2734C">&apos;=https&apos;</font> <font color="#A347BA">--tlsv1.2</font> <font color="#A347BA">-LsSf</font> https://github.com/probe-rs/probe-rs/releases/latest/download/probe-rs-tools-installer.sh <font color="#12488B"><b>|</b></font> <font color="#26A269">sh</font>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +downloading probe-rs-tools 0.29.0 x86_64-unknown-linux-gnu
 +installing to /home/tomoyan/.cargo/bin
 +  cargo-embed
 +  cargo-flash
 +  probe-rs
 +everything&apos;s installed!
 +</pre></html></WRAP>
 +</WRAP>
 +
 +または\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269">cargo</font> binstall probe-rs-tools
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +<font color="#26A269"> INFO</font> <b>resolve</b><font color="#7D7D7D">: Resolving package: &apos;probe-rs-tools&apos;</font>
 +<font color="#A2734C"> WARN</font> The package probe-rs-tools v0.29.0 (x86_64-unknown-linux-gnu) has been downloaded from github.com
 +<font color="#26A269"> INFO</font> This will install the following binaries:
 +<font color="#26A269"> INFO</font>   - cargo-embed =&gt; /home/tomoyan/.cargo/bin/cargo-embed
 +<font color="#26A269"> INFO</font>   - cargo-flash =&gt; /home/tomoyan/.cargo/bin/cargo-flash
 +<font color="#26A269"> INFO</font>   - probe-rs =&gt; /home/tomoyan/.cargo/bin/probe-rs
 +Do you wish to continue? [yes]/no
 +
 +<font color="#26A269"> INFO</font> Installing binaries...
 +<font color="#26A269"> INFO</font> Done in 18.714802133s
 +</pre></html></WRAP>
 +</WRAP>
 +
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">curl</font> https://probe.rs/files/69-probe-rs.rules <font color="#A347BA">-o</font> /etc/udev/rules.d/69-probe-rs.rules
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
 +                                 Dload  Upload   Total   Spent    Left  Speed
 +100 11115  100 11115    0      17411      0 --:--:-- --:--:-- --:--:-- 17421
 +</pre></html></WRAP>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">udevadm</font> control <font color="#A347BA">--reload</font>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">udevadm</font> trigger
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 1329: 行 1347:
 <span style="background-color:#020617"><font color="#E2E8F0"> ✅ Enable BLE via the esp-wifi crate.                                                                               ble</font></span> <span style="background-color:#020617"><font color="#E2E8F0"> ✅ Enable BLE via the esp-wifi crate.                                                                               ble</font></span>
 <span style="background-color:#172554"><font color="#E2E8F0"><b> ✅ Add embassy framework support.                                                                               embassy</b></font></span> <span style="background-color:#172554"><font color="#E2E8F0"><b> ✅ Add embassy framework support.                                                                               embassy</b></font></span>
-<span style="background-color:#020617"><font color="#E2E8F0"> ✅ Use probe-rs to flash and monitor instead of espflash.                                                      probe-rs</font></span> +<span style="background-color:#020617"><font color="#4B5563">    Use probe-rs to flash and monitor instead of espflash.                                                      probe-rs</font></span> 
-<span style="background-color:#020617"><font color="#E2E8F0"> ▶️  Flashing, logging and debugging (probe-rs)                                                                         </font></span> +<span style="background-color:#020617"><font color="#4B5563"> ▶️</font></span><span style="background-color:#020617"><font color="#E2E8F0"> </font></span><span style="background-color:#020617"><font color="#4B5563"> Flashing, logging and debugging (probe-rs)                                                                          </font></span> 
-<span style="background-color:#020617"><font color="#4B5563"> ▶️</font></span><span style="background-color:#020617"><font color="#E2E8F0"> </font></span><span style="background-color:#020617"><font color="#4B5563"> Flashing, logging and debugging (espflash)                                                                         </font></span> +<span style="background-color:#020617"><font color="#E2E8F0"> ▶️  Flashing, logging and debugging (espflash)                                                                          </font></span> 
-<span style="background-color:#020617"><font color="#E2E8F0"> ▶️  Options                                                                                                            </font></span> +<span style="background-color:#020617"><font color="#E2E8F0"> ▶️  Options                                                                                                             </font></span> 
-<span style="background-color:#020617"><font color="#E2E8F0"> ▶️  Optional editor config files for rust-analyzer                                                                     </font></span>+<span style="background-color:#020617"><font color="#E2E8F0"> ▶️  Optional editor config files for rust-analyzer                                                                      </font></span>
 <span style="background-color:#020617"><font color="#E2E8F0">                                                                                                                        </font></span> <span style="background-color:#020617"><font color="#E2E8F0">                                                                                                                        </font></span>
 <span style="background-color:#020617"><font color="#E2E8F0">                                                                                                                        </font></span> <span style="background-color:#020617"><font color="#E2E8F0">                                                                                                                        </font></span>
行 1389: 行 1407:
 <font color="#F92672">embedded-io-async</font><font color="#F8F8F2"> = </font><font color="#E6DB74">&quot;0.6.1&quot;</font> <font color="#F92672">embedded-io-async</font><font color="#F8F8F2"> = </font><font color="#E6DB74">&quot;0.6.1&quot;</font>
 <font color="#F92672">esp-alloc</font><font color="#F8F8F2"> = </font><font color="#E6DB74">&quot;0.7.0&quot;</font> <font color="#F92672">esp-alloc</font><font color="#F8F8F2"> = </font><font color="#E6DB74">&quot;0.7.0&quot;</font>
 +<font color="#F92672">esp-backtrace</font><font color="#F8F8F2"> = { </font><font color="#F92672">version</font><font color="#F8F8F2"> = </font><font color="#E6DB74">&quot;0.15.1&quot;</font><font color="#F8F8F2">, </font><font color="#F92672">features</font><font color="#F8F8F2"> = [</font>
 +<font color="#F8F8F2">  </font><font color="#E6DB74">&quot;defmt&quot;</font><font color="#F8F8F2">,</font>
 +<font color="#F8F8F2">  </font><font color="#E6DB74">&quot;esp32&quot;</font><font color="#F8F8F2">,</font>
 +<font color="#F8F8F2">  </font><font color="#E6DB74">&quot;exception-handler&quot;</font><font color="#F8F8F2">,</font>
 +<font color="#F8F8F2">  </font><font color="#E6DB74">&quot;panic-handler&quot;</font><font color="#F8F8F2">,</font>
 +<font color="#F8F8F2">] }</font>
 <font color="#F92672">esp-hal</font><font color="#F8F8F2"> = { </font><font color="#F92672">version</font><font color="#F8F8F2"> = </font><font color="#E6DB74">&quot;1.0.0-beta.0&quot;</font><font color="#F8F8F2">, </font><font color="#F92672">features</font><font color="#F8F8F2"> = [</font> <font color="#F92672">esp-hal</font><font color="#F8F8F2"> = { </font><font color="#F92672">version</font><font color="#F8F8F2"> = </font><font color="#E6DB74">&quot;1.0.0-beta.0&quot;</font><font color="#F8F8F2">, </font><font color="#F92672">features</font><font color="#F8F8F2"> = [</font>
 <font color="#F8F8F2">  </font><font color="#E6DB74">&quot;defmt&quot;</font><font color="#F8F8F2">,</font> <font color="#F8F8F2">  </font><font color="#E6DB74">&quot;defmt&quot;</font><font color="#F8F8F2">,</font>
行 1394: 行 1418:
 <font color="#F8F8F2">  </font><font color="#E6DB74">&quot;unstable&quot;</font><font color="#F8F8F2">,</font> <font color="#F8F8F2">  </font><font color="#E6DB74">&quot;unstable&quot;</font><font color="#F8F8F2">,</font>
 <font color="#F8F8F2">] }</font> <font color="#F8F8F2">] }</font>
-<font color="#F92672">panic-rtt-target</font><font color="#F8F8F2"> = { </font><font color="#F92672">version</font><font color="#F8F8F2"> = </font><font color="#E6DB74">&quot;0.2.0&quot;</font><font color="#F8F8F2">, </font><font color="#F92672">features</font><font color="#F8F8F2"> = [</font><font color="#E6DB74">&quot;defmt&quot;</font><font color="#F8F8F2">] }</font> +<font color="#F92672">esp-println</font><font color="#F8F8F2"> = { </font><font color="#F92672">version</font><font color="#F8F8F2"> = </font><font color="#E6DB74">&quot;0.13.0&quot;</font><font color="#F8F8F2">, </font><font color="#F92672">features</font><font color="#F8F8F2"> = [</font><font color="#E6DB74">&quot;defmt-espflash&quot;</font><font color="#F8F8F2">, </font><font color="#E6DB74">&quot;esp32&quot;</font><font color="#F8F8F2">] }</font>
-<font color="#F92672">rtt-target</font><font color="#F8F8F2"> = { </font><font color="#F92672">version</font><font color="#F8F8F2"> = </font><font color="#E6DB74">&quot;0.6.1&quot;</font><font color="#F8F8F2">, </font><font color="#F92672">features</font><font color="#F8F8F2"> = [</font><font color="#E6DB74">&quot;defmt&quot;</font><font color="#F8F8F2">] }</font>+
 <font color="#F92672">smoltcp</font><font color="#F8F8F2"> = { </font><font color="#F92672">version</font><font color="#F8F8F2"> = </font><font color="#E6DB74">&quot;0.12.0&quot;</font><font color="#F8F8F2">, </font><font color="#F92672">default-features</font><font color="#F8F8F2"> = </font><font color="#BE84FF">false</font><font color="#F8F8F2">, </font><font color="#F92672">features</font><font color="#F8F8F2"> = [</font> <font color="#F92672">smoltcp</font><font color="#F8F8F2"> = { </font><font color="#F92672">version</font><font color="#F8F8F2"> = </font><font color="#E6DB74">&quot;0.12.0&quot;</font><font color="#F8F8F2">, </font><font color="#F92672">default-features</font><font color="#F8F8F2"> = </font><font color="#BE84FF">false</font><font color="#F8F8F2">, </font><font color="#F92672">features</font><font color="#F8F8F2"> = [</font>
 <font color="#F8F8F2">  </font><font color="#E6DB74">&quot;medium-ethernet&quot;</font><font color="#F8F8F2">,</font> <font color="#F8F8F2">  </font><font color="#E6DB74">&quot;medium-ethernet&quot;</font><font color="#F8F8F2">,</font>
行 2021: 行 2044:
  
 サンプル: [[https://wokwi.com/projects/364260690862579713|esp32-nostd-ssd1306 - Wokwi ESP32, STM32, Arduino Simulator]]\\ サンプル: [[https://wokwi.com/projects/364260690862579713|esp32-nostd-ssd1306 - Wokwi ESP32, STM32, Arduino Simulator]]\\
 +wokwi-builders: [[https://github.com/wokwi/wokwi-builders/blob/main/rust-nostd-esp/Dockerfile|]]\\
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
  • rust/rust_on_esp_install.1749080618.txt.gz
  • 最終更新: 2025/06/05 08:43
  • by ともやん