klips/esp/rust/02_esp-gen-no-std
..
2025-09-21 12:07:30 -04:00
2025-09-21 12:07:30 -04:00
2025-09-21 12:07:30 -04:00
2025-09-21 12:07:30 -04:00
2025-09-21 12:07:30 -04:00
2025-09-21 12:07:30 -04:00
2025-09-21 12:07:30 -04:00

02_esp-gen-no-std

This is an example of using ESP-IDF using no std. When flashed to a device, the application just adjusts the intensity of the on-board LED for visual verification that flashing works correctly.

Steps used to generate this project

cargo install esp-generate
esp-generate --chip esp32 esp-gen-no-std

You will also need to install probe-rs

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/probe-rs/probe-rs/releases/latest/download/probe-rs-tools-installer.sh | sh

Steps to build and flash this project

# Install espflash if you don't have it already
cargo install espflash

# Export esp-idf build environment
. ~/export-esp.sh

# Build and flash to the device
cargo build
cargo run

If you encounter this error during the build, you need to export the esp-idf build environment with . ~/export-esp.sh

error: linker `xtensa-esp32-elf-gcc` not found
  |
  = note: No such file or directory (os error 2)

error: could not compile `03_esp-gen-no-std` (bin "esp-gen-test") due to 1 previous error

For more detailed information on setting up a development environment, see the esp/rust README