std-training
rp2040-mandel-pico
std-training | rp2040-mandel-pico | |
---|---|---|
11 | 2 | |
553 | 6 | |
3.4% | - | |
7.5 | 0.0 | |
about 1 month ago | over 1 year ago | |
Rust | Rust | |
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
std-training
-
ESP32 Standard Library Embedded Rust: GPIO Interrupts
It's well established that interrupts are a tough concept to grasp for the embedded beginner. Add to that when doing it in Rust the complexity of dealing with mutable static variables. This is because working with shared variables and interrupts is inherently unsafe if proper measures are not taken. When looking at how to do interrupts using the esp-idf-hal I first resorted to the Embedded Rust on Espressif book. Interrupts are covered under the Advanced Workshop in section 4.3, and to be honest, I was taken aback a little at what could be an additional level of complexity for a beginner. Without too much detail, this is because the book resorts to using lower-level implementations. For those interested, by that, I mean FFI interfaces to FreeRTOS which I will be creating a separate post about later.
- The Nano ESP32
-
ESP32 Standard Library Embedded Rust: GPIO Control
Relative to the esp-idf-hal , as far as material goes, there exists training material that is open sourced by Ferrous systems. The training material takes a bit of a different approach where it starts with high-level IoT exercises followed by low-level control. Additionally, the training is based on the awesome Rust ESP board hardware.
-
Espressif advances with Rust – 30-06-2023
Yes! The training developed with Ferrous Systems (https://esp-rs.github.io/std-training/) contains several examples, and you can find many community projects in https://github.com/esp-rs/awesome-esp-rust#projects
-
Unlocking Possibilities: 4 Reasons Why ESP32 and Rust Make a Winning Combination
Good places to get started with std Rust on ESP include the Rust on ESP book, Embedded Rust on Espressif by Ferrous Systems. There's also the Awesome ESP Rust GitHub repository that contains a lot of useful material and project examples.
-
Embedded Rust on ESP32C3 Board, a Hands-on Quickstart Guide
Embedded Rust on Espressif (Ferrous Systems training)
- Some experience with IoT
-
Why do I constantly feel like I'm doing something wrong by continuing using C++?
I must admit I've never used it for anything but tutorials yet (kids resulted in a lot of personal projects shelved), but Rust has an amazing and rapidly developing embedded ecosystem. A good starting point to get an impression of it might be training materials from Ferrous Systems 1, 2 (feel free to pay for the training itself if you feel like it's worth it for you of course). There is an embedded working group for Rust, Knurling project to improve tooling and even an attempt of Rust standard certified for safety-critical application.
- noob question, Whats the point of interfacing arduino uno and ESP32?
-
Ask HN: Has any Rust developer moved to embedded device programming?
I’ve been super curious about both Rust and ESP. It seems like Espressif is interested enough to commission a Rust dev board (ESP32-C3-DevKit-RUST-1) and training using it.
https://github.com/esp-rs/esp-rust-board/
https://github.com/ferrous-systems/espressif-trainings
rp2040-mandel-pico
- Show HN: A more complete Rust example project for the Rasberry Pi Pico
-
Ask HN: Has any Rust developer moved to embedded device programming?
I started to explore the area, mostly arm based (rp2040 and STM) and a little bit of ESP32.
Tool chain wise:
ESP32 support is very recent and still based on the C tool chain and this makes it very fragile (you can break your environment easily and it is never clear how to recover except recompiling the entire tooolchain from 0)
Arm is a little better because the support is native.
The community is trying to make a generic embedded Hal platform API and implement it for specific devices. And it is pretty bad: almost no documentation, very few examples, tons of autogenerated code where you need to come back to the C world to understand the actual concepts.
Once you start to get going Rust is a blast to program in and the generated code is pretty efficient.
A small project a shared to help people starting on a lilygo device: https://github.com/gbin/rp2040-mandel-pico
What are some alternatives?
solo2 - Solo 2 firmware in Rust
esp-rust-board - Open Hardware with ESP32-C3 compatible with Feather specification designed in KiCad
espflash - Serial flasher utility for Espressif SoCs and modules based on esptool.py
tock - A secure embedded operating system for microcontrollers
wokwi-features - Wokwi Feature requests & Bug Reports
MIO - Metal I/O library for Rust.
awesome-esp-rust - Curated list of resources for ESP32 development in the Rust programming language
solo1 - Solo 1 firmware in C
carbon-lang - Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)