Verifying a FreeRTOS port?

This question is possibly frequently asked but I’ll ask again: Are there a set of unit tests or similar which verify a port is working correctly? Many thanks Jerry

Verifying a FreeRTOS port?

Older features are tested *extremely* thoroughly by the SafeRTOS test harnesses, whereas newer features have their own tests (although not published) – but these are primarily for the generic behviour of the common code rather than a port. When testing a port the first thing I do it check the tick frequency is correct with an oscilloscope. Next create a set of tasks that fill the CPU registers with known values – each register has a different values – and each task uses its own unique values.  Make sure the some tasks also perform yields.  Once the registers are filled, loop around continuously checking that none of the values ever change as the tasks are swapped in and out, and as interrupts execute.  If a value ever changes, then something is wrong in the context switching mechanism.  . Next do a soak test by running the standard demo tasks.  Some of there are very sophisticated in testing interrupt nesting, block times, timers, etc. and they actually give you very good kernel coverage as well as port layer coverage.  Leave these running with the tasks that check the CPU registers too.  You will need a task that checks all the demo and test tasks are running without error – again there are lots of demos in the download that do this. Hope this helps.  Which port do you have? Regards.

Verifying a FreeRTOS port?

Hello Richard, I want to verify my Blackfin Bf52X port.