3 ms·
RTOSes are developed to solve this exact problem of concurrency. Try Zephyr, ThreadX (from MS) or FreeRTOS (from Amazon) or whichever OS your microcontroller ve
by gaudat 4y ago
RTOSes are developed to solve this exact problem of concurrency. Try Zephyr, ThreadX (from MS) or FreeRTOS (from Amazon) or whichever OS your microcontroller vendor supports. It will be eye opening, and you get to learn to write safe code in C with synchronization primitives just like our ancestors.
- steve_adams_86 4y agoHa, I'd never seen FreeRTOS – thanks! It looks awesome.
- HeyLaughingBoy 4y agoESP32 running with Arduino framework comes with FreeRTOS out of the box.
- voakbasda 4y agoAmazon did not create FreeRTOS; they simply took over maintenance a few years back. I didn’t know that happened until I fact-checked your comment, but it is enough to make me never want to use it ever again. And that makes me very sad.
- kevin_thibedeau 4y agoThey improved the licensing to MIT. The pre-acquisition license was "GPL" but it had a noncompliant restriction prohibiting comparative benchmarks. There have also been useful improvements to the codebase. Amazon is a net positive in this case.
- bsder 4y agoFreeRTOS is now MIT licensed, and the primary developer is actually getting paid to work on FreeRTOS. This can only improve FreeRTOS and the embedded ecosystem in general. And, if Amazon becomes a problem, people can fork and bail.
- dylan604 4y ago>just like our ancestors. why am I laughing at how much this stings? we're not that old, damnit!
- kjs3 4y agoI saw a tee shirt the other day that said "It sucks to be the same age as old people". We are that old. :-)