Programming ARM Cortex-M Microcontrollers with Rust
I recently finished my Master's Thesis on using anything other than C/C++ on microcontrollers.It's a mess. A couple of languages like Rust, D, etc. can be hacked on micros due to their compiler suite, but it is always messy. Above guide uses inline assembly to blink a GPIO. Hardware access is on register level.
None of this makes your live easier.In order to be viable for microcontrollers you need two things:
* a compiler or interpreter for your target
* a Hardware APIThere are some projects, like MicroPython and Espruino who realized the importance of the Hardware API. They basically transcend micro-interpreters and RTOS (especially given the languages asyncio features).Microcontroller vendors ship C/C++ libraries for their hardware. You either have to wrap that, like the micro-interpreters do, or your language has to be able to use them natively.What Rust on microcontrollers need is a Kickstarter campaign with a nice dev-board as perk to finance a project that implements a nice API for that specific micro.