Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


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


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?


RE: Verifying a FreeRTOS port?

Posted by G40 on June 24, 2012
Hello Richard,

I want to verify my Blackfin Bf52X port.

[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers


STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner