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] [September 2015 Threads] Trouble updating to 8.2.2Posted 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.2Posted 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.2Posted 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.2Posted 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.2Posted 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.2Posted 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.2Posted 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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|