FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [July 2015 Threads]
Hello
I wanted to compile FreeRTOS V8.1.2 with Keil µVision but I got an error :
> #if( configMAXPRIORITIES > 32 )
> ..srcportableRVDSARMCM4Fportmacro.h(148): error: #18: expected a ")"
I saw a difference in the file portmacro.h now there is
/* Port specific optimisations. */
#ifndef configUSEPORTOPTIMISEDTASKSELECTION
#define configUSEPORTOPTIMISEDTASKSELECTION 1
#endif
#if configUSE_PORT_OPTIMISED_TASK_SELECTION == 1
/* Check the configuration. */
#if( configMAX_PRIORITIES > 32 )
The cast inside configMAX_PRIORITIE definition generates the error
....
This is presumably because of the configMAX_PRIORITIES definition in FreeRTOSConfig.h.
[as you say] Ensure the definition does not contain a cast. For example, the following will be ok:
#define configMAX_PRIORITIES ( 8 )
whereas the following would not be ok:
#define configMAX_PRIORITIES ( ( UBaseType_t ) 8 )
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.