Skip to content
/ rust-on-esp32 Public template

Running Rust on ESP32 by the Norse IoT club

License

Notifications You must be signed in to change notification settings

Norse-IoT/rust-on-esp32

Repository files navigation

rust-on-esp32

Steps to run Rust on ESP32, for use in the Norse IoT club.

Thanks to the esp-rust community for making this an easy process.

These instructions are mirrored on the wiki page.


Installation Instructions

The following instructions were taken from https://github.com/esp-rs/rust-build#rust-build.

Using Rust for ESP32

Step 0: install Rust & Cargo from RustUp

Step 1: Install espup

cargo install espup
espup install # To install Espressif Rust ecosystem
# [Unix]: Source the following file in every terminal before building a project
. $HOME/export-esp.sh

Step 2: RISC-V Installation

rustup target add riscv32imc-unknown-none-elf

Step 3: The Cargo First Approach

cargo install cargo-generate
# STD Project
cargo generate esp-rs/esp-idf-template cargo
# NO-STD (Bare-metal) Project
cargo generate esp-rs/esp-template
cargo espflash flash <SERIAL>
# for me, this was cargo espflash flash --port /dev/ttyUSB0 

Internal Blink project

The standard sanity check after creating a new project is to create a project that blinks the internal led.

See main.rs for the sample code.

About

Running Rust on ESP32 by the Norse IoT club

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages