This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SDK 12.2 FreeRTOS Build Errors

I am trying to update my project to SDK 12.2 which was released this week and I am getting a ton of compiler errors with the FreeRTOS source files. For example, I try an compile tasks.c and I get the following errors to start. The compiler final bails after it hits 101 errors.

Error[Pe020]: identifier "TickType_t" is undefined C:\dbeckwith\Depot\Frank\vendor\nrfSDK_12_x_x\external\freertos\source\include\list.h 184 
    Error[Pe020]: identifier "TickType_t" is undefined C:\dbeckwith\Depot\Frank\vendor\nrfSDK_12_x_x\external\freertos\source\include\list.h 196 
    Error[Pe020]: identifier "UBaseType_t" is undefined C:\dbeckwith\Depot\Frank\vendor\nrfSDK_12_x_x\external\freertos\source\include\list.h 208 
    Error[Pe020]: identifier "UBaseType_t" is undefined C:\dbeckwith\Depot\Frank\vendor\nrfSDK_12_x_x\external\freertos\source\include\list.h 446 
    Error[Pe079]: expected a type specifier C:\dbeckwith\Depot\Frank\vendor\nrfSDK_12_x_x\external\freertos\source\include\task.h 109 
    Error[Pe090]: function returning function is not allowed C:\dbeckwith\Depot\Frank\vendor\nrfSDK_12_x_x\external\freertos\source\include\task.h 109 
    Error[Pe168]: a function type is not allowed here C:\dbeckwith\Depot\Frank\vendor\nrfSDK_12_x_x\external\freertos\source\include\task.h 136 
    Error[Pe020]: identifier "TickType_t" is undefined C:\dbeckwith\Depot\Frank\vendor\nrfSDK_12_x_x\external\freertos\source\include\task.h 137 

It almost seems to me that a header file somewhere in the SDK is missing a bracket or a semicolon and this is causing this problem. When I switch back to SDK 12.1 I have no issues. I have even tried using the FreeRTOS files from SDK 12.1 in SDK 12.2 and that doesn't help.

Before any one asks I have tried compiling the example HRS with FreeRTOS project and it compiles correctly with no issues. That doesn't prove that this is an issue with my code since the example project may not include the problem header file.

I am using IAR tools.

Anyone else experience this?

Related