Use traceTASK_SWITCHED_IN without modifying the IDF (v3.2.2)
Posted: Tue Dec 03, 2019 3:09 pm
Hi,
We are trying to use FreeRTOS trace macros (e.g. traceTASK_SWITCHED_IN) to produce some runtime application checks/diagnostics. Unfortunately, I cannot figure out how to #define these macros into our project without modifying the FreeRTOS.h file in IDF.
I have tried to include our macros before the FreeRTOS.h in the project (outside IDF) but it doesn't work because the IDF includes FreeRTOS.h first.
Also, if I forward-declare our functions in FreeRTOS.h with extern and #define them there, everything works fine. So, the project configs should be okay.
Is there a way to #define these macros into our project without modifying the IDF? Maybe using a CMake feature?
PS: I know v3.2.2 is outdated ... but we have no option of upgrading atm because of ADF dependencies and deadlines.
Thank you all!
We are trying to use FreeRTOS trace macros (e.g. traceTASK_SWITCHED_IN) to produce some runtime application checks/diagnostics. Unfortunately, I cannot figure out how to #define these macros into our project without modifying the FreeRTOS.h file in IDF.
I have tried to include our macros before the FreeRTOS.h in the project (outside IDF) but it doesn't work because the IDF includes FreeRTOS.h first.
Also, if I forward-declare our functions in FreeRTOS.h with extern and #define them there, everything works fine. So, the project configs should be okay.
Is there a way to #define these macros into our project without modifying the IDF? Maybe using a CMake feature?
PS: I know v3.2.2 is outdated ... but we have no option of upgrading atm because of ADF dependencies and deadlines.
Thank you all!