Last active
September 28, 2022 20:55
-
-
Save mfiumara/0fa61c2c86bcd9d828b41754ac223ea7 to your computer and use it in GitHub Desktop.
Rust set-up for ESP32-C3 development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install the required nightly toolchain | |
rustup install nightly | |
rustup component add rust-src --toolchain nightly | |
rustup target add riscv32imc-unknown-none-elf | |
# Install tooling to check the size of our binary | |
rustup component add llvm-tools-preview | |
# Install helper packages for a smooth development workflow | |
cargo install cargo-generate | |
cargo install ldproxy | |
cargo install espflash | |
cargo install espmonitor | |
# Generate template project | |
cargo generate --vcs none --git https://github.com/esp-rs/esp-idf-template cargo | |
# CD Into your project folder, compile and flash the application | |
cd <my-project-dir> | |
cargo build && espflash --speed 406800 target/riscv32imc-esp-espidf/debug/wireprobe-rs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment