cancel
Showing results for 
Search instead for 
Did you mean: 

FreeRTOSConfig.h file patching mode

sonerb
Associate II

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?

0693W00000YAanZQAT.png 

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

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

View solution in original post

2 REPLIES 2
Erwan YVIN
ST Employee

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

sonerb
Associate II

Hi,

How can I use "user.mak" file to add custom FreeRTOSConfig.h?