Programming ARM Cortex-M Microcontrollers with Rust
I recently finished my Master's Thesis on using anything other than C/C++ on microcontrollers.<p>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.<p>In order to be viable for microcontrollers you need two things:
* a compiler or interpreter for your target
* a Hardware API<p>There 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).<p>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.<p>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.