Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
embuild
Build support for embedded Rust: Cargo integration with other embedded build ecosystems & tools, like PlatformIO, CMake and kconfig.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
esp-idf-template
A "Hello, world!" template of a Rust binary crate for the ESP-IDF framework. (by esp-rs)
-
rust-esp32-std-demo
Rust on ESP32 STD demo app. A demo STD binary crate for the ESP32[XX] and ESP-IDF, which connects to WiFi, Ethernet, drives a small HTTP server and draws on a LED screen.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Today, I'll be showing you how to use the Rust programming language on a Rust ESP board, a recent embedded platform packed with Wi-Fi and Bluetooth capabilities.
Today, I'll be showing you how to use the Rust programming language on a Rust ESP board, a recent embedded platform packed with Wi-Fi and Bluetooth capabilities.
The original article and associated examples are available in my Rust ESP Quickstart GitLab repository.
We'll now use Rustup to install both Rust and Cargo (Rust's package manager):
espflash to flash the device (see espflash)
espmonitor to display the output of our println!() calls (see espmonitor)
ldproxy to forward linker arguments (see ldproxy)
cargo-generate to generate projects according to a template (see cargo-generate)
The awesome ESP IDF Template will save us the pain of configuring a fully functional project ourselves, use it like so:
Board Support Package
esp-template: no_std project template
A complete STD demo on ESP32C3
It is the exact same as VSCode but without telemetry/tracking stuff, plus it uses MIT license (see the official website). Install and run it like so:
Go to the extensions tab and type "rust analyzer" in the search bar, then click the install button ("Rust language support for Visual Studio Code"). That's it! You can find more information about it on the official website. The Even Better TOML and crates extensions might also be of interest to you.
Embedded Rust on Espressif (Ferrous Systems training)
Let's ask ChatGPT how to do that: