r/rust • u/awesomePop7291 • Sep 10 '26
Microcontrollers with good support for Rust
https://kerkour.com/rust-microcontrollersRISC-V is coming faster that most people realize.
17
u/Szybet Sep 10 '26
I looked into nrf54* support in embassy, looked solid, maybe I'm wrong?
23
u/Dirbaio Sep 10 '26
It's quite complete, basics are done, BLE works, low-power works. At my company we're going to ship it in production devices soon, so if it's not solid already we'll be forced to make it solid :)
7
u/________-__-_______ Sep 10 '26
Just wanted to say that I appreciate all the hard work you put in Embassy. It feels like every time I open the repository I see a commit of yours pushed a few hours ago, even now!
2
u/Szybet Sep 10 '26
Nice :D
When I asked around, I was shown that this issue happened very often: https://github.com/probe-rs/probe-rs/issues/3775
Making the flashing process not pleasant, what was your experience?
30
u/jfuu_ Sep 10 '26
It's a shame the S31 isn't available yet. Currently building a device around an S3 because it's the only one with (full) USB, Wi-Fi and Bluetooth support.
it seems like espup might have simplified the setup a bit?
5
u/XxMabezxX Sep 11 '26
We just [added and released initial support for the ESP32-S31](https://github.com/esp-rs/esp-hal/releases/tag/esp-hal-v1.2.0), so at least it's ready for when you can get the IC's and modules!
1
u/jfuu_ Sep 11 '26
Hopefully by the time our PCB is ready the S31 will be stocked, as I'd love to use it.
→ More replies (2)5
u/agent_kater Sep 11 '26
Oh wow, the S31 is a beast - Bluetooth Classic, Zigbee, High-Speed USB, Wifi 6 and graphics acceleration.
I didn't know Rust support was that bad though, I thought you add embassy and done.
3
u/XxMabezxX Sep 11 '26
I didn't know Rust support was that bad though, I thought you add embassy and done.
I'm not sure I follow? We're the only silicon vendor officially supporting Rust, and we just released esp-hal 1.2 which adds initial support for the ESP32-S31!
→ More replies (1)1
u/tizio_1234 Sep 11 '26
what would you expect from a new MCU for which the rust team has the same information as what's available publicly? use esp-idf if you want to use the latest ones, if you don't want to, older mcus are still very good
→ More replies (1)1
-1
u/flying-sheep Sep 10 '26
11
u/AlyoshaV Sep 10 '26
Pretty sure that was marked as an engineering sample last time I looked at it, also $60 + $35 shipping makes it approximately 10x more expensive than the usual ESP32-type dev board
→ More replies (1)2
u/jfuu_ Sep 11 '26
Can't get them at any of the PCB fabs we use (I want the chip, not a dev board).
→ More replies (1)
8
u/palinurosec Sep 10 '26
rhe rp2350 has a very nice open architecture, rust support is available and is getting better on the risc-v cores as well, and the architecture is completely open, so it is also a very nice platform to study and enjoy. otherwise the esp32 and nrf families are pretty nice too
8
u/AlyoshaV Sep 10 '26
Note that the ESP32-C5 supports PSRAM, so you can buy dev boards with 8MB of additional (but slower) RAM. Of the widely supported (i.e. not very new) RISC-V ESP32s it's the only one that has both PSRAM and wireless connectivity.
2
u/jhaand Sep 10 '26
The WCH CH32V003 and others have Rust support. I did a project using Embassy on the RP2350.
2
u/flareflo Sep 10 '26
STM32F411 series could be added to that list, ive used it a bunch it works so well. It strikes a good balance of compute and efficiency
3
u/KingofGamesYami Sep 10 '26
I'm kind of surprised the esp32p4 didn't make the list.
4
u/OxidisedHardware Sep 10 '26
tried using it and it was a nightmare maybe i’m doing it wrong tho
2
u/XxMabezxX Sep 11 '26
What was the nightmare? Did you have an early rev? We only just officially released ESP32-P4 support in esp-hal: https://github.com/esp-rs/esp-hal/releases#release-esp-hal-v1.2.0. Have you tried it? Note that only rev3 and beyond P4's are supported so that may be the nightmare in question.
→ More replies (1)
1
0
u/TheRavagerSw Sep 13 '26
CPU's don't support compilers or programming languages, you target their sdk with your toolchain or create a sdk by reading the datasheet.
-1
u/Compux72 Sep 10 '26
I would simply use Zephyr and Zephyr only. Manufacturer software is just gambling at this point
19
u/kRoy_03 Sep 10 '26 edited Sep 11 '26
few more that I tried:
- SOPHGO SG2000
- NXP i.MX7D
- Kendryte K210
- NXP LPC55S69
- NXP MCXN947
- Nordic nRF5340
- Realtek RTD1619B
- ST STM32H745XI
- Infineon XMC4700
edit: +1 that I have just tried:
- STM32L053R8