4 ms·
So, which language or tool would you recommend?
by ranit 8y ago
So, which language or tool would you recommend?
- vardump 8y agoRust looks quite promising. Currently limited microcontroller architecture support is one of the biggest issues with it. Rust based RTOS would also be helpful for medium size devices. Of course small devices are fine on bare metal.
- v_lisivka 8y agoThere are some projects, for example [1],[2], but they require nightly compiler, i.e. they cannot be used in production yet. [1]: https://github.com/tock/tock/blob/master/doc/Getting_Started.md https://github.com/tock/tock/blob/master/doc/Getting_Started... [2]: https://github.com/hashmismatch/freertos.rs https://github.com/hashmismatch/freertos.rs
- iainmerrick 8y agoIf you don't use Rust yet, what do you use right now? I would have guessed C or C++. Maybe they're not great for the purpose but they're also just about the only game in town, no?
- vardump 8y agoMostly C. While C++ is easier to write, for very low level code, it is harder to maintain when you need to understand all of the side effects to maintain code safety. C++ compiler support is also sometimes not available. (And of course it's very like there'll be no Rust compiler available either in this case.)
- v_lisivka 8y agoRust looks promising, but it is not ready yet. I use it on iMX6, which is relatively powerful system, but on NRF52 we still use C. Maybe I will use it on NRF52 when support for bare hardware metal will be in stable (working group[1] is working on that). [1]: https://github.com/rust-lang-nursery/embedded-wg https://github.com/rust-lang-nursery/embedded-wg