esp-hal
espup
esp-hal | espup | |
---|---|---|
3 | 7 | |
580 | 203 | |
6.2% | 5.9% | |
9.8 | 8.6 | |
7 days ago | 16 days ago | |
Rust | Rust | |
Apache License 2.0 | 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.
esp-hal
-
Rust on Espressif chips – 29-09-2023
In the esp-hal, they appear to offer both sync and async I2C implementations, depending on what works best for an application. Since the async implementation is gated by a feature, it may not show up in the docs you linked.
Async implementation: https://github.com/esp-rs/esp-hal/blob/main/esp-hal-common/s...
You can also see the async feature mentioned here: https://docs.rs/crate/esp32s2-hal/latest/features
-
The Embedded Rust ESP Development Ecosystem
Going another level up the chain, we then have the hardware abstraction layer (HAL) crate. HAL crates are supposed to offer more portability and user-friendly API for a particular processor. For ESP devices the different hals are captured in the esp-hal repository. This occurs by implementing some common traits defined in what is referred to as the embedded-hal. Additionally, the device HAL attempts to incorporate mechanisms, or wrappers around lower-level functions, that are part of the Rust safety model.
-
How to write HALs and get into microcontroller programming
There is https://docs.rust-embedded.org/book/design-patterns/hal/index.html but I wonder what OP is missing in https://github.com/esp-rs/esp-hal
espup
-
Rust Based Linux Process Manager with both a TUI and a GUI
https://github.com/esp-rs/espup/issues/19 https://github.com/tauri-apps/tauri/issues/1355
-
Switching from C++ to Rust
Thanks for mentioning it. I already tried using it a few months ago and brushed it off as still being a WIP, but it still didn't work when I tried again just a few days ago. Asking in the Matrix chat when first trying it sadly only got me a "works for me" from the developers.
What Espressif is doing with their esp-idf and porting it to Rust is promising, but overall it still needs work. Using the toolchain to develop on the ESP32 was at least slightly painful half a year ago before they introduced espup[1], having to keep a patched LLVM around etc., and supposedly support for their Xtensa architecture is coming to LLVM soon[2] so this will improve in the future.
I'd also love to see Bluetooth support in esp-idf-svc[3], but they seem to be lacking people with the required knowledge to design and implement an abstraction for it[4].
[1]: https://github.com/esp-rs/espup
-
Embedded Rust tutorials on the ESP32-C3
The environment setup can now be done with espup, its a Rust tool that replaces the bash scripts and also works in Windows.
- ESP32 Buyer’s Guide: Different Chips, Firmware, Sensors
-
How do I program an ESP32 S3 in Rust using podman from WSL?
Installing it locally should be relatively simple with espup, let me know if you finally decide to go for this option and have some questions!
-
Rust for Embedded Development (e.g. microcontrollers)
We even have our own installer (written in Rust of course :D) - https://github.com/esp-rs/espup
What are some alternatives?
esp32-phantom - ESP32 Rust-based WiFi and BLE sandbox
esp-idf-template - Template application for https://github.com/espressif/esp-idf
linux-embedded-hal - Implementation of the `embedded-hal` traits for Linux devices
esp-idf-template - A "Hello, world!" template of a Rust binary crate for the ESP-IDF framework.
esp-idf-hal - embedded-hal implementation for Rust on ESP32 and ESP-IDF
bluetooth-proxies - This repo hosts known, tested devices that can serve as Bluetooth proxies for Home Assistant.
esp-pacs - Peripheral Access Crates for Espressif SoCs and modules
esp-web-flash-server - Starts a local server serving a web page to flash a given ELF file
esp-storage - implementation of embedded-storage traits to access unencrypted ESP32 flash
esp-wifi - A WiFi, Bluetooth and ESP-NOW driver for use with Espressif chips and bare-metal Rust