rust:rust_on_esp_install

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
rust:rust_on_esp_install [2025/06/05 13:58] – [no_std プロジェクトの作成] ともやんrust:rust_on_esp_install [2025/12/16 05:05] (現在) – [Fedora] ともやん
行 14: 行 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
  
行 814: 行 814:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<font color="#0087FF"><b>$</b></font> <font color="#26A269">cargo</font> binstall espup</pre></html></WRAP> +<font color="#0087FF"><b>$</b></font> <font color="#26A269">cargo</font> binstall espup 
-<WRAP color_result><html><pre><font color="#26A269"> INFO</font> <b>resolve</b><font color="#7D7D7D">: Resolving package: &apos;espup&apos;</font>+</pre></html></WRAP> 
 +<WRAP color_result><html><pre> 
 +<font color="#26A269"> INFO</font> <b>resolve</b><font color="#7D7D7D">: Resolving package: &apos;espup&apos;</font>
 <font color="#A2734C"> WARN</font> The package espup v0.15.1 (x86_64-unknown-linux-gnu) has been downloaded from github.com <font color="#A2734C"> WARN</font> The package espup v0.15.1 (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> This will install the following binaries:
行 833: 行 835:
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
 espup 0.15.1 espup 0.15.1
 +</pre></html></WRAP>
 +</WRAP>
 +
 +==== espup の更新 ====
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269">cargo</font> binstall espup
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +<font color="#26A269"> INFO</font> <b>resolve</b><font color="#7D7D7D">: Resolving package: &apos;espup&apos;</font>
 +<font color="#A2734C"> WARN</font> The package espup v0.16.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>   - espup =&gt; /home/tomoyan/.cargo/bin/espup
 +Do you wish to continue? [yes]/no 
 +<font color="#26A269"> INFO</font> Installing binaries...
 +<font color="#26A269"> INFO</font> Done in 58.514174605s
 +</pre></html></WRAP>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269">espup</font> <font color="#A347BA">-V</font>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +espup 0.16.0
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 885: 行 909:
 <font color="#0087FF"><b>$</b></font> <font color="#26A269">espup</font><font color="#999999"> update</font> <font color="#0087FF"><b>$</b></font> <font color="#26A269">espup</font><font color="#999999"> update</font>
 </pre></html></WRAP> </pre></html></WRAP>
-<WRAP color_result><html><pre> +<WRAP color_result><html><pre>[info]: Updating the Espressif Rust ecosystem
-[info]: Updating the Espressif Rust ecosystem+
 [info]: Checking Rust installation [info]: Checking Rust installation
 [info]: Installing RISC-V Rust targets (&apos;riscv32imc-unknown-none-elf&apos;, &apos;riscv32imac-unknown-none-elf&apos; and &apos;riscv32imafc-unknown-none-elf&apos;) for &apos;stable&apos; toolchain [info]: Installing RISC-V Rust targets (&apos;riscv32imc-unknown-none-elf&apos;, &apos;riscv32imac-unknown-none-elf&apos; and &apos;riscv32imafc-unknown-none-elf&apos;) for &apos;stable&apos; toolchain
 +[warn]: Previous installation of LLVM exists in: &apos;/home/tomoyan/.rustup/toolchains/esp/xtensa-esp32-elf-clang/esp-19.1.2_20250225&apos;. Reusing this installation
 +[info]: Creating symlink between &apos;/home/tomoyan/.rustup/toolchains/esp/xtensa-esp32-elf-clang/esp-19.1.2_20250225/esp-clang/lib&apos; and &apos;/home/tomoyan/.espup/esp-clang&apos;
 [info]: Installing GCC (xtensa-esp-elf) [info]: Installing GCC (xtensa-esp-elf)
-[info]: Installing Xtensa LLVM+[warn]: Previous installation of GCC exists in: &apos;/home/tomoyan/.rustup/toolchains/esp/xtensa-esp-elf/esp-14.2.0_20240906&apos;. Reusing this installation
 [info]: Uninstalling Xtensa Rust toolchain [info]: Uninstalling Xtensa Rust toolchain
-[info]: Installing Xtensa Rust 1.86.0.0 toolchain +[info]: Installing Xtensa Rust 1.90.0.0 toolchain 
-[warn]: Installation for &apos;Xtensa Rust&apos; failed, retrying. Error: error sending request for url (https://github.com/esp-rs/rust-build/releases/download/v1.86.0.0/rust-1.86.0.0-x86_64-unknown-linux-gnu.tar.xz) +[info]: All downloads complete
-[warn]: Failed to detect version of Xtensa Rust, reinstalling it +
-[info]: Uninstalling Xtensa Rust toolchain +
-[info]: Installing Xtensa Rust 1.86.0.0 toolchain +
-[info]: Creating symlink between &apos;/home/tomoyan/.rustup/toolchains/esp/xtensa-esp32-elf-clang/esp-19.1.2_20250225/esp-clang/lib&apos; and &apos;/home/tomoyan/.espup/esp-clang&apos;+
 [info]: All downloads complete [info]: All downloads complete
 [info]: Installing &apos;rust&apos; component for Xtensa Rust toolchain [info]: Installing &apos;rust&apos; component for Xtensa Rust toolchain
行 903: 行 924:
 [info]: Update successfully completed! [info]: Update successfully completed!
  
-        To get started, you need to set up some environment variables by running: &apos;. /home/tomoyan/export-esp.sh&apos; + To get started, you need to set up some environment variables by running: &apos;. /home/tomoyan/export-esp.sh&apos; 
-        This step must be done every time you open a new terminal. + This step must be done every time you open a new terminal. 
-            See other methods for setting the environment in https://esp-rs.github.io/book/installation/riscv-and-xtensa.html#3-set-up-the-environment-variables+     See other methods for setting the environment in https://esp-rs.github.io/book/installation/riscv-and-xtensa.html#3-set-up-the-environment-variables
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
行 912: 行 933:
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-rustc 1.86.0-nightly (5944fc5cd 2025-04-01) (1.86.0.0)+rustc 1.90.0-nightly (abf50ae2e 2025-09-16) (1.90.0.0)
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 1407: 行 1428:
 <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>
行 1412: 行 1439:
 <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>
行 2039: 行 2065:
  
 サンプル: [[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.1749099503.txt.gz
  • 最終更新: 2025/06/05 13:58
  • by ともやん