Skip to main content

Rust

Rust ESP Book

cargo install ldproxy

cargo install espup
espup install
. ~/export-esp.sh

Install tools to flash Rust to ESP32, and set up user permissions to allow TTY device access for flashing.

sudo apt install libudev-dev
cargo install espflash

Now we need to generate the template project and flash it to the device.

Understanding esp-generate

cargo install esp-generate
esp-generate --chip=esp32 i2c-scanner
cd i2c-scanner
cargo build