Re:Programming ARM Cortex-M Microcontrollers with Rust
by geokon on Sunday April 09, 2017 @07:39AM
(#14071783)
In a similar vein there is ATS - which already compiles to C.
And you can in theory write controller code in ATS if you want those functional features and more
ex:
(this guy has done examples on a ton of boards!) https://github.com/fpiot
www.metasepi.org/doc/metasepi-icfp2015-arduino-ats.pdf
Compared to these early rust attempts they've written a port of ArduPilot in ivory/tower called smaccmpilot (http://smaccmpilot.org/).
In one of the papers they even compare ivory with rust in terms of memory safety.
I'm now trying to port ODriveFirmware written in C (+CubeMX/CMSIS) to ivory and so far I'm pretty surprised how well it goes. I'm going to start documenting this process on a blog soon, if interested I've created a wiki page collecting resources about embedded programming in Haskell at https://wiki.base48.cz/EmbeddedHaskell