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. */
}
Not much in the FreeRTOS_TAD_log
"FreeRTOS Task Aware Debugger for GDB" version 11.2.0 (202001021529)
(c) 2016-2018 NXP Semiconductors, Inc.
==================================
12:28:18.321 INFO: [TadModel] DSF session ID 9 has ended.
Leroy
You can check the FreeRTOS_TAD_log files under the workspace folder, there should be some error message.
MCUXpressoIDE_11.3.1_5262\workspace\FreeRTOS_TAD_logs
Could you please make a simple project for me to reproduce your issue on my EVK board?
Regards
Daniel
I reduced the tasks down to two without a change in result.
Thanks,
Leroy
I dropped it to two tasks without a change in result.
Regards,
Leroy
Hi leroynash:
Please note that MCUXpresso IDE FreeRTOS thread aware debugging is available only after the FreeRTOS scheduler has started. so the task list will not appear straight after loading the application when the default breakpoint on main() is reached.
could you please let me know how to reproduce your issue on evk 1064 board?
BTW: MCUXpresso IDE 11.3.1 is available to download at below link
Regards
Daniel
If I pause the debugger after vTaskStartScheduler(); The task list window attempts to fill but there is no data. I have about 6 user created tasks running. I have attempted to follow the MCUXpresso IDE FreeRTOS Debug Guide. The configuration is shared in the previous post.
I would suggest you test only one task, and check the task list is OK?
Regards
Daniel