Hello @inse1979
To enable run-time statistics in FreeRTOS on the LPC55xx, you need to configure a hardware timer that FreeRTOS can use to track task execution time. The error you're seeing is because the required macros are not yet defined in your FreeRTOSConfig.h.
Make sure these are defined:
#define configGENERATE_RUN_TIME_STATS 1
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS configureTimerForRunTimeStats()
#define portGET_RUN_TIME_COUNTER_VALUE getRunTimeCounterValue()
You’ll need to implement two functions in your application code:
configureTimerForRunTimeStats()
This function sets up a hardware timer (e.g., CTIMER0) to count at a known frequency.
void configureTimerForRunTimeStats(void)
{
...
}
getRunTimeCounterValue()
This function returns the current timer count.
uint32_t getRunTimeCounterValue(void)
{
return CTIMER0->TC;
}
Thank you.
BR
Alice