80 points · by AndrewDucker · 11y ago · 20 comments
$ cargo build --target thumbv7em-none-eabi
instead of $ rustc -C opt-level=2 -Z no-landing-pads --target thumbv7em-none-eabi -g --emit obj -L libcore-thumbv7m -o runtime.o runtime.rs
or other shenanigans. You can run that Cargo command right now, but you still need to do a little bit of work first.Safety at the Rust level is very valuable in embedded work. Debugging small embedded machines is not fun.
You should try ST's discovery/nucleo boards. Much cheaper and ChibiOS (www.chibios.org) has some nice API and examples to get started.
Can you please expand on that, especially assuming(a big assumption) that the c code you're interfacing is high quality , with rare bugs ?
If anybody has experience with writing C macros to rust bindings I would be interested in hearing about it.
Maybe they'll be interested in funding rust development? it might give them some competitive advantage, some amount of control of a possible future platform, i.e. rust.