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


V9.0.0 "bugs"

Posted by mjhuslig on June 12, 2016

I am pretty new at this but I found two 'problems' with the v9 code.

In the FreeRTOS.h file there are two instances of #ifndef configMAX_PRIORITIES. The second instance is not actually verifying the value.

Just before line 1906 of tasks.c I had to add a line #if ( configGENERATERUNTIME_STATS == 1 ) with an #endif following line 1906 in order to compile.


V9.0.0 "bugs"

Posted by westmorelandeng on June 12, 2016

Hello Mike,

Which port are you running?

It could help for us to see the options you have enabled in your FreeRTOSConfig.h file.

I have been running v9 since RC1 and haven't run into what you've mentioned - but this could be due to what features you have enabled/disabled.

Regards, John W.

V9.0.0 "bugs"

Posted by rtel on June 12, 2016

Thank you for taking the time to provide this feedback.

The second instance of configMAX_PRIORITIES has been changed to:

#if configMAX_PRIORITIES < 1

I think your second issue is probably a misconfiguration, and could have been corrected by simply removing the definition of portCONFIGURETIMERFORRUNTIME_STATS from your FreeRTOSConfig.h file - but as per John W's post, without seeing your FreeRTOSConfig.h file I can't be sure.

V9.0.0 "bugs"

Posted by mjhuslig on June 13, 2016

Thank you both.

I have changed the FreeRTOS.h file to have.

#ifndef configMAX_PRIORITIES
 #error Missing definition:  configMAX_PRIORITIES must be defined in FreeRTOSConfig.h.  See the Configuration section of the FreeRTOS API documentation for details.
#elif configMAX_PRIORITIES < 1
#error configMAX_PRIORITIES must be defined to be greater than or equal to 1.

My other problem was indeed an improper FreeRTOSConfig.h file. I had copied it over from the CORTEXKinetisK60TowerIAR demo project:

#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() vMainConfigureTimerForRunTimeStats()
#define portGET_RUN_TIME_COUNTER_VALUE() ulMainGetRunTimeCounterValue()

but I hadn't defined the two functions in code.

[ 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