2023-02-13 04:15 AM
I want to trace ContextSwitchIn and ContextSwitchOut events.
I defined two functions for this.
#define traceTASK_SWITCHED_OUT() getTASK_SWITCHED_OUT_EVENT(pxCurrentTCB)
#define traceTASK_SWITCHED_IN() getTASK_SWITCHED_IN_EVENT(pxCurrentTCB)
I put the two functions at the end of the FreeRTOSConfig.h file. But, It is returning to the original file after clean-generate the code again.
It says in the help that patching mode only works on lib/src, lib/include and lib/rsc folders.
FreeRTOSConfig.h is located in the cfg folder. How can I solve this problem?
Solved! Go to Solution.
2023-02-13 07:28 AM
Dear Sonerb ,
you can not patch this file FreeRTOSConfig.h
I recommend you to hack this file in creating an include file and adding in the user.mak :
#ifndef FREERTOS_CONFIG_H
#define FREERTOS_CONFIG_H
Best Regards
Erwan
2023-02-13 07:28 AM
Dear Sonerb ,
you can not patch this file FreeRTOSConfig.h
I recommend you to hack this file in creating an include file and adding in the user.mak :
#ifndef FREERTOS_CONFIG_H
#define FREERTOS_CONFIG_H
Best Regards
Erwan
2023-02-15 12:33 AM
Hi,
How can I use "user.mak" file to add custom FreeRTOSConfig.h?