Can the tracing hook macros be redefined in Arduino?
Posted: Thu Jul 17, 2025 12:48 pm
can the FreeRTOS trace hook macros (https://freertos.org/Documentation/02-K ... ce-feature) be used in Arduino?
I tried to use them by creating a custom FreeRTOSConfig.h:
and then implementing vTaskSwitchedIn and vTaskSwitchedOut in the .ino, but they never get called.
Adding #define configUSE_TRACE_FACILITY 1 doesn't make a difference either.
Is this possible in Arduino?
I tried to use them by creating a custom FreeRTOSConfig.h:
Code: Select all
#include_next "freertos/FreeRTOSConfig.h"
#ifdef __cplusplus
extern "C" {
#endif
void vTaskSwitchedIn(void *pxTCB);
void vTaskSwitchedOut(void *pxTCB);
#ifdef __cplusplus
}
#endif
#define traceTASK_SWITCHED_IN() vTaskSwitchedIn(pxCurrentTCB)
#define traceTASK_SWITCHED_OUT() vTaskSwitchedOut(pxCurrentTCB)Adding #define configUSE_TRACE_FACILITY 1 doesn't make a difference either.
Is this possible in Arduino?