FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [June 2012 Threads] Verifying a FreeRTOS port?Posted by G40 on June 23, 2012 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
RE: Verifying a FreeRTOS port?Posted by Richard on June 23, 2012 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. [you will find a lot of the demos in the FreeRTOS download have these tasks in still].
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.
RE: Verifying a FreeRTOS port?Posted by G40 on June 24, 2012 Hello Richard,
I want to verify my Blackfin Bf52X port.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|