4 ms·
Last I checked STM32 microcontrollers can't run .Net, and thus can't use C#. They can run Rust. Rust's embedded and OS-level capabilities are a big point in it
by SAI_Peregrinus 6y ago
Last I checked STM32 microcontrollers can't run .Net, and thus can't use C#. They can run Rust.
Rust's embedded and OS-level capabilities are a big point in its favor, particularly over something like C#.
- Const-me 6y agoIndeed, you need a reasonably capable OS kernel to use .NET runtime. And enough RAM. And I wouldn’t want .NET for hard realtime use cases. Even in embedded, for some products the tradeoff is good enough. A while ago I’ve shipped embedded software that uses .NET Core and runs on RK3288, worked quite well for us. BTW, do you have good experience with Rust on bare metal STM32? I would expect STM-supported C toolset and libraries to be generally better?
- SAI_Peregrinus 6y agoI find the Rust embedded-hal to be quite good. STM's HAL code is a horrible inefficient mess, though their LL library isn't bad. I'd much rather use Rust's hal crates and probe-run. That said, CubeMX's configuration tool is very nice. But that's used (hopefully) once at board bringup and never again, so not worth sticking with C for.
- pjmlp 6y agoDepends, .NET => https://www.wildernesslabs.co/hardware https://www.wildernesslabs.co/hardware Oberon => https://www.astrobe.com/boards.htm https://www.astrobe.com/boards.htm Java https://www.microej.com/ https://www.microej.com/ https://www.aicas.com/wp/ https://www.aicas.com/wp/ https://www.ptc.com/en/products/developer-tools/perc https://www.ptc.com/en/products/developer-tools/perc