cancel
Showing results for 
Search instead for 
Did you mean: 

(Solved) STM32Cube IDE FreeRTOS Task Aware Debugging

BEvan.2
Associate II

Hi,

I'm currently trying to configure FreeRTOS task aware debugging. It mostly seems to be working, however, I cannot get the Min Free Stack, Event Objects or State columns fully working on the Task List Tab. The image below displays the current state. I want Min Free Stack to display Stack Usage and the Event object to not display nothing or N/A as per https://my.st.com/resource/en/user_manual/dm00629856-stm32cubeide-user-guide-stmicroelectronics.pdf

0693W00000D1EINQA3.png 

Other screens such at the Semaphore list seem to be displaying everything correctly:

0693W00000D1EJaQAN.png 

I have defined the following:

#define configGENERATE_RUN_TIME_STATS      1
#define configRECORD_STACK_HIGH_ADDRESS     1
#define configUSE_TRACE_FACILITY        1
/ * Ive tried enabling this including NXPs freertos_tasks_c_additions.h but it doesnt seem to make a difference. */
#define configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H 0

I also have a timer configured for runtime stats with the following defined:

#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() configure_timer_for_run_time_stats()
#define portGET_RUN_TIME_COUNTER_VALUE() TIM2->CNT

In the console when debugging, it seems like the plugin correctly loads everything as seen below. I'm not sure if FreeRTOSDebugConfig needs to be set but I can't find anything from ST about this.

Received symbol: pxCurrentTCB (0x20000108)
Received symbol: pxReadyTasksLists (0x2000010C)
Received symbol: xDelayedTaskList1 (0x20000198)
Received symbol: xDelayedTaskList2 (0x200001AC)
Received symbol: pxDelayedTaskList (0x200001C0)
Received symbol: pxOverflowDelayedTaskList (0x200001C4)
Received symbol: xPendingReadyList (0x200001C8)
Received symbol: xTasksWaitingTermination (0x200001DC)
Received symbol: xSuspendedTaskList (0x200001F4)
Received symbol: uxCurrentNumberOfTasks (0x20000208)
Received symbol: uxTopUsedPriority (0x20000010)
Received symbol: uxTopReadyPriority (0x20000210)
Received symbol: vPortEnableVFP (0x08007F34)
Received symbol: FreeRTOSDebugConfig (0x00000000)
All mandatory symbols successfully loaded.

I'm using FreeRTOS V10.4.3 with an STM32H743II. I have a JLink debugger and am using STMCubeIDE 1.6.1.

Does anyone know of any issues here or know how to debug this issue further and see what the plugin is actually doing?

Kind Regards,

Ben

1 ACCEPTED SOLUTION

Accepted Solutions
BEvan.2
Associate II

Upgrading to STM32CubeIDE 1.7.0 fixed the issue.

View solution in original post

2 REPLIES 2
BEvan.2
Associate II

Upgrading to STM32CubeIDE 1.7.0 fixed the issue.

Thank you for sharing the solution 😊