Skip to content

simon0356/rust-esp32-minimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple example of Rust executing on ESP32

Setup Build Environment

Follow https://github.com/esp-rs/rust-build installation
Install esp-id : https://github.com/espressif/esp-idf
Install Espressif LLVM : https://github.com/espressif/llvm-project

cd llvm-project
mkdir build
cd build
cmake -G Ninja -DLLVM_ENABLE_PROJECTS='clang' -DCMAKE_BUILD_TYPE=Release ../llvm
cmake --build .
export PATH="$HOME/esp32/rust/src/llvm-project/build/bin:$PATH"

Build this project :

cargo build
espflash /dev/ttyUSB0 target/xtensa-esp32-espidf/debug/rust_on_esp32

About

A minimal project executing rust on ESP32

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages