I am running FreeRTOS on a 1064 EVK using MCUXpress 11.2 and a Seggar Pro JTAG debugger.
I man not getting any data in the TASK List view when the processor is paused.
I have the following defines in FreeRTOSConfig.h
/* Run time and task stats gathering related definitions. */
#define configUSE_TRACE_FACILITY ( 1 )
#define configGENERATE_RUN_TIME_STATS ( 1 )
extern uint32_t McuRTOS_RunTimeCounter;
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() ( McuRTOS_RunTimeCounter = 0UL )
#define configUSE_STATS_FORMATTING_FUNCTIONS ( 1 )
#define portGET_RUN_TIME_COUNTER_VALUE() McuRTOS_RunTimeCounter
Main contains the following and I see the counter is incrementing:
void vStatsTimerCallback( TimerHandle_t xTimer )
{
McuRTOS_RunTimeCounter++;
}
static void AppConfigureTimerForRuntimeStats(void) {
const TickType_t StatsInterval = 100 / portTICK_PERIOD_MS;
TimerHandle_t xStatsTimer;
xStatsTimer = xTimerCreate( "StatsTimer", StatsInterval, pdTRUE, ( void * ) 0, vStatsTimerCallback);
if( xTimerStart( xStatsTimer, 0 ) != pdPASS )
{
/* The timer could not be set into the Active state. */
}