Question

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.

Was it helpful?

Solution

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 :((

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top