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

Trouble updating to 8.2.2

Posted by amcolex on September 11, 2015

I'm trying to update my FreeRTOS code base from 8.1.2 to 8.2.2 and am having issues.

After replacing all of the source/portable files + FreeRTOSconfig.h, i get the following complication error:

C:UsersalexpgitgimballfirmwareFlyabilityCommonLibrariesFreeRTOSinc/portmacro.h:221:32: error: 'configMAXSYSCALLINTERRUPTPRIORITY' undeclared (first use in this function) :"=r" (ulNewBASEPRI) : "i" ( configMAXSYSCALLINTERRUPTPRIORITY )

I'm currently running on a STM32F407 with GCC (Eclipse)

I've posted a picture of the folder structure:


Trouble updating to 8.2.2

Posted by rtel on September 11, 2015

After replacing all of the source/portable files

Did you only replace the FreeRTOS/source/portable files, or did you also replace the files in FreeRTOS/source? You should check all the FreeRTOS files you are using have a consistent version number.

Regards.


Trouble updating to 8.2.2

Posted by amcolex on September 11, 2015

I also replaced the source files (Every file in the screenshot is at 8.2.2)


Trouble updating to 8.2.2

Posted by rtel on September 11, 2015

I presume you have configMAXSYSCALLINTERRUPT_PRIORITY defined in your FreeRTOSConfig.h header file? You said you changed the FreeRTOSConfig.h file too - that should not have been necessary, as that should be part of your application, not part of the FreeRTOS source tree (it tailors a common FreeRTOS code base to a particular application).

Inside portmacro.h, if you select configMAXSYSCALLINTERRUPT_PRIORITY then select "Open Declaration" from the pop up menu - where does it take you?

Regards.


Trouble updating to 8.2.2

Posted by amcolex on September 11, 2015

I've tried both actually. I initially left the FreeRTOSConfig file alone since i didn't see any new definitions, and then copied one from the demo's folder just in case.

The editor linker works (if i control click the definition it finds it in the FreeRTOSConfig file). I'm not sure how the compiler is supposed to find it though, since there are no includes in portmacro.h and i didnt set the FreeRTOSConfig as a project wide include file.

To test if it was some sort of linking issues i set configMAX_PRIORITIES to 40 to see if the error check at line 182 triggered during compilation, and it does.


Trouble updating to 8.2.2

Posted by rtel on September 11, 2015

I'm not sure how the compiler is supposed to find it though, since there are no includes in portmacro.h and i didnt set the FreeRTOSConfig as a project wide include file.

The source file must include "FreeRTOS.h".

FreeRTOS.h then includes, FreeRTOSConfig.h, projdefs.h and portable.h, in that order, to ensure FreeRTOSConfig.h is included before portable.h.

portmacro.h being included from portable.h to provide the port specific definitions.


Trouble updating to 8.2.2

Posted by amcolex on September 11, 2015

Ok that make sense. Unfortunately, i still don't understand why the compiler fails though.

If i replace the macro with the expanded values "( 5 << (8 - 4) )", the project compiles correctly, so this is a localized issue.


[ 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