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


Portmacro.h compile error in 9.0.0

Posted by groger57 on August 4, 2016

Hello: I just switched over my code from 8.0.0 (compiled OK) to 9.0.0, where I am getting an error that I don't understand from the line number it's reporting. I am using the ARM_CM3 version of portmacro.h in IAR EWARM. The compile error says this:

Error[Pe018]: expected a ")" C:UsersgrrDocumentsIAR Embedded WorkbenchFreeRTOSv9.0.0FreeRTOSSourceportableIARARM_CM3portmacro.h 144

I don't see anything wrong with that line, and the corresponding define in the FreeRTOS config looks OK, and it is compiling with 8.0.0.

Thanks for the assistance...

Portmacro.h compile error in 9.0.0

Posted by rtel on August 4, 2016

Line 144 is:

#if( configMAX_PRIORITIES > 32 )

so I'm going to guess the problem is with the definition of configMAX_PRIORITIES in your FreeRTOSConfig.h file.

Ensure configMAX_PRIORITIES is just a number, without any casts.

Portmacro.h compile error in 9.0.0

Posted by groger57 on August 4, 2016

Removing the cast fixed it. Worked Ok in 8.0.0. Thanks for your help !

.#define configMAXPRIORITIES ( ( unsigned portBASETYPE ) 5 )


[ 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