-
Install Rustup.
-
Install toolchain.
- RiscV target - RiscV chips like ESP32-CXX are already supported in stock Rust.
- Xtensa target - we need follow the instruction steps for your operating system.
Here, the new mindot will base on RiscV target chip.
-
Build llvm Clang. You'll need the custom LLVM clang based on the Espressif LLVM fork for Rust STD support. we need follow instruction steps.
-
Build APP.
- Choose
esptoolchain:rustup default esp- For RiscV target, we can use
nightlydirectly:rustup install nightlyrustup default nightly
- Set Clang libary directory.
export LIBCLANG_PATH=<path to the Espressif Clang lib directory> - Install linker.
cargo install ldproxy - Build image.
cargo build
- Choose
-
Flash
cargo install espflashespflash /dev/ttyUSB0 target/[xtensa-esp32-espidf|xtensa-esp32s2-espidf|riscv32imc-esp-espidf]/debug/rust-esp32-std-demo- Replace /dev/ttyUSB0 above with the USB port where you've connected the board.
-
Monitor
cargo install espmonitorespmonitor /dev/ttyUSB0
-
For details, you can refer the demo.
-
Notifications
You must be signed in to change notification settings - Fork 0
MindDot Firmware
License
minddot/fw
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
MindDot Firmware
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published