Page 1 of 1

using traceTASK_SWITCHED_OUT

Posted: Thu Nov 09, 2023 7:27 pm
by micron
Hello,

I'm new to the ESP32-S3, but have had lots of experience with FreeRTOS. I want to use the capability to hook the scheduler in order to accumulate run times of tasks per core. I have done this before on another platform, but can't figure out what I'm missing in the ESP-IDF V5.1.1 that makes this work.

Normally, I would put this in FreeRTOSConfig.h, but since this file has been removed from the programmer's access, how do I get this into the build?

Code: Select all

extern  void taskCoreRunTime(int bOut);
#define traceTASK_SWITCHED_OUT() taskCoreRunTime(1)
#define traceTASK_SWITCHED_IN() taskCoreRunTime(0)