Pregunta

I have an existing embedded source code which runs directly on a microcontroller with no operating system. I need to port the code to run on a specific RTOS.

Are there any guidelines in where to start when attempting wuch a thing ? Resources, best practices, and other insight will be much appriciated.

¿Fue útil?

Solución

RTOS preemptive multitasking is all about I/O performance. You need drivers that can make a thread ready when I/O is complete, eg. by signaling a semaphore. Nothing else is remotely as important.

Sadly, this usually means a system redesign to eliminate the performance-crippling polling that existed before :((

Otros consejos

First of all, the RTOS has to be ported on your microcontroller. If the RTOS already supports your microcontroller, then next would be tweaking your code for the RTOS. For that you need to refer the user guide of RTOS.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top