[esp] Add Rust no-std example.

This commit is contained in:
2025-09-21 09:35:04 -04:00
parent bb28b1e2ef
commit 85f588fcb3
22 changed files with 1375 additions and 5 deletions

View File

@@ -0,0 +1,33 @@
# 03_no-std-lcd
This is an example of using ESP-IDF using no std.
When flashed to a device, the application draws a message to the LCD screen.
Steps used to generate this project
```bash
cargo install esp-generate
esp-generate --chip esp32 esp-gen-no-std
```
You will also need to install [probe-rs](https://probe.rs/docs/getting-started/installation/)
```bash
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
```bash
# 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
```
For more detailed information on setting up a development environment, see [the esp/rust README](/esp/rust/README.md)