Dependancies
Buy the components
rustup target add riscv32imc-unknown-none-elf
cargo install cargo-generate
cargo install ldproxy
cargo install espup
cargo install espflash
cargo install cargo-espmonitor
cargo install --list
cargo generate esp-rs/esp-idf-template cargo
With options:
Typical output:
$ cargo generate esp-rs/esp-idf-template cargo
⚠️ Favorite `esp-rs/esp-idf-template` not found in config, using it as a git repository: https://github.com/esp-rs/esp-idf-template.git
🤷 Project Name: blinky-rust-esp32c3
🔧 Destination: /Users/sayanee/Desktop/blinky-rust-esp32c3 ...
🔧 project-name: blinky-rust-esp32c3 ...
🔧 Generating template ...
✔ 🤷 Which MCU to target? · esp32c3
✔ 🤷 Configure advanced template options? · false
🔧 Moving generated files into: `/Users/sayanee/Desktop/blinky-rust-esp32c3`...
🔧 Initializing a fresh Git repository
✨ Done! New project created /Users/sayanee/Desktop/blinky-rust-esp32c3
$ cd blinky
src/main.rs
with the blinky code.Cargo.toml
to add dependencies $ cargo build
Check the port address
$ ls /dev/cu.*
/dev/cu.usbserial-1410
espflash flash target/riscv32imc-esp-espidf/debug/blinky
Start the serial monitor
cargo espmonitor /dev/cu.usbserial-1410 --chip esp32c3