Dependancies
Buy the components
git clone https://github.com/esp-rs/rust-build.git
cd rust-build
./install-rust-toolchain.sh
. export-esp.sh
$PATH
export LIBCLANG_PATH="~/.espressif/tools/xtensa-esp32-elf-clang/esp-14.0.0-20220415-x86_64-apple-darwin/lib/"
export PATH="~/.espressif/tools/xtensa-esp32-elf-gcc/8_4_0-esp-2021r2-patch3-x86_64-apple-darwin/bin/:~/.espressif/tools/xtensa-esp32s2-elf-gcc/8_4_0-esp-2021r2-patch3-x86_64-apple-darwin/bin/:~/.espressif/tools/xtensa-esp32s3-elf-gcc/8_4_0-esp-2021r2-patch3-x86_64-apple-darwin/bin/:$PATH"
cargo install cargo-generate
cargo install ldproxy
cargo install espflash
cargo install espmonitor
$ cargo generate --vcs none --git https://github.com/esp-rs/esp-idf-template cargo
🤷 Project Name : hello
🔧 Destination: /Users/sayanee/Desktop/hello ...
🔧 Generating template ...
✔ 🤷 STD support · true
✔ 🤷 ESP-IDF native build version (v4.3.2 = previous stable, v4.4 = stable, mainline = UNSTABLE) · v4.4
? 🤷 Configure project to use Dev Containers (VS Code, GitHub Codespaces and Gitpod)? (beware: Dev Cont
✔ 🤷 Configure project to use Dev Containers (VS Code, GitHub Codespaces and Gitpod)? (beware: Dev Containers not available for esp-idf v4.3.2) · false
✔ 🤷 MCU · esp32s3
[ 1/10] Done: .cargo/config.toml
[ 2/10] Done: .cargo
[ 3/10] Done: .gitignore
[ 4/10] Done: .vscode
[ 5/10] Done: Cargo.toml
[ 6/10] Done: build.rs
[ 7/10] Done: rust-toolchain.toml
[ 8/10] Done: sdkconfig.defaults
[ 9/10] Done: src/main.rs
[10/10] Done: src
🔧 Moving generated files into: `/Users/sayanee/Desktop/hello`...
✨ Done! New project created /Users/sayanee/Desktop/hello
$ cd hello
src/main.rs
with the blinky codeCargo.toml
to add dependancies $ cargo build
espflash /dev/cu.usbmodem14101 target/xtensa-esp32s3-espidf/debug/hello
Start the serial monitor
espmonitor /dev/cu.usbmodem14101