Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

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.


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




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists