Bare metal code to freeRTOS migration

kiranhatti7 wrote on Tuesday, September 24, 2019:

One of our product is using bare metal coding written in C language for Ti MSP432E401Y. Now we are going to migrate it to FreeRTOS. Whether only application code need to be divided in to tasks? Drivers and middleware code can be kept as it is?
Also please let me the migration steps if ther is any?

richard_damon wrote on Tuesday, September 24, 2019:

In my experiance, the bulk of the application code can stay as is, only the parts that control how one piece talks to another change. Drivers are what typically change first, changing ‘busy waits’ into using interrupts and FreeRTOS syncronization primatives.

Often you can start with just those changes, to get a ‘single task’ application that mostly works just as before but runs under FreeRTOS. You can then start to break up the application into pieces.

If you don’t change the drivers from using busy waits to using blocking on syncronization primatives, you tend to loose any help that FreeRTOS would provide, as they busy waits will eat up your processor cycles.

kiranhatti7 wrote on Thursday, September 26, 2019:

Thanks for your information. It’s really helped me a lot. I appreciate if
you share some links to explore on examples.

Regards.
Kiran hatti

On Tue 24 Sep, 2019, 3:48 PM Richard Damon <
richard_damon@users.sourceforge.net wrote:

In my experiance, the bulk of the application code can stay as is, only
the parts that control how one piece talks to another change. Drivers are
what typically change first, changing ‘busy waits’ into using interrupts
and FreeRTOS syncronization primatives.

Often you can start with just those changes, to get a ‘single task’
application that mostly works just as before but runs under FreeRTOS. You
can then start to break up the application into pieces.

If you don’t change the drivers from using busy waits to using blocking on
syncronization primatives, you tend to loose any help that FreeRTOS would
provide, as they busy waits will eat up your processor cycles.

Bare metal code to freeRTOS migration
https://sourceforge.net/p/freertos/discussion/382005/thread/095f439627/?limit=25#004c

Sent from sourceforge.net because you indicated interest in
SourceForge.net: Log In to SourceForge.net

To unsubscribe from further messages, please visit
SourceForge.net: Log In to SourceForge.net