https://github.com/gdamjan/esp32-c3-devkit
My Playground for the esp32-c3 devkit and Rust
https://github.com/gdamjan/esp32-c3-devkit
demo embedded esp32 risc-v rust
Last synced: about 1 month ago
JSON representation
My Playground for the esp32-c3 devkit and Rust
- Host: GitHub
- URL: https://github.com/gdamjan/esp32-c3-devkit
- Owner: gdamjan
- License: mit
- Created: 2024-05-18T14:15:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-04T20:50:06.000Z (over 1 year ago)
- Last Synced: 2025-10-07T07:38:18.273Z (9 months ago)
- Topics: demo, embedded, esp32, risc-v, rust
- Language: Rust
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `esp32-c3-rs`
[ESP32-C3](https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32c3/esp32-c3-devkitm-1/user_guide.html)
is a low-power and highly-integrated MCU-based solution that supports 2.4 GHz Wi-Fi and
Bluetooth® Low Energy (Bluetooth LE). It has a 32-bit RISC-V single-core processor, up to 160 MHz, 384 KB ROM, 400 KB SRAM (16 KB for cache) and 8 KB SRAM in RTC. The ISA is `riscv32imc-unknown-none-elf` (no support for atomics).

## Preparation
- [`rustup`](https://rustup.rs/) - is recommended to install rust and its components
- `cargo install cargo-binutils` - for `cargo size` and `cargo objdump -- --disassemble`, etc…
- `cargo install cargo-espflash` - flash and monitor using the [`espflash project`](https://github.com/esp-rs/espflash/tree/main/cargo-espflash)
## Flash and monitor
- `cargo build --release`
- `cargo espflash flash --release`
- `cargo espflash monitor`
## VS Code settings
The repo will also suggest common extensions for VS Code:
- [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
- [crates helper](https://marketplace.visualstudio.com/items?itemName=serayuzgur.crates)
and some settings to instruct rust-analyzer to only run for the `riscv32imc-unknown-none-elf` target.
## References
- [ESP32-C3 Series Datasheet](https://www.espressif.com/sites/default/files/documentation/esp32-c3_datasheet_en.pdf)
- https://github.com/esp-rs
- https://docs.esp-rs.org/book/