guiliug wrote on Monday, April 29, 2019:
I realize my question is quite broad and I must excuse myself in advance for this, but really, I can’t think of a way to narrow it down at this point.
I’m asked to compare on the whole the pros and cons of using RTOS libraries vs STM libraries and I’m not sure where to start off. What should I look at? What characteristics should I ponder over? What advantages can bring one over the other?
Any tips/help is more than welcome.
richard_damon wrote on Monday, April 29, 2019:
The BIG difference between an RTOS designed library and the typical library from the chip manufacturer, is that a RTOS designed library will allow the thread doing the I/O to ‘Block’ and give up the CPU until the I/O is done, and then resume, while most basic libraries will just ‘Spin-Wait’ for the I/O to complete and not let other tasks run, because the basic libraries don’t really understand the concept of tasks.
A properly designed RTOS library will use interrupts for the I/O, the manufacture libraries might not,
rtel wrote on Monday, April 29, 2019:
if you are talking specifically about FreeRTOS then the FreeRTOS kernel
itself is just a scheduler…which is normally used with the libraries
provided by the silicon vendor. So its a bit of a non-question. The
exceptions to that would be the TCP/IP stack, where we have our own and
ST use lwIP.