cancel
Showing results for 
Search instead for 
Did you mean: 

stm32 freertos debug

yang hong
Associate II

I am using NUCLEO-H743ZI2 with freeRTOS CMSIS V2. I would like to view freertos task list. I followed the instruction in UM2609, I did all of the modification, but I still can't trace freertos task list. When I start program, FreeRTOS task list is empty, I need suspend program, freertos task list is filled but run time shows n/a, stack usage shows n/a, after I resume the program, taks list is not updated.

Does anybody know how to fix it?

2 REPLIES 2
yang hong
Associate II

after one day works, I fixed the issue. I need set extra timer but faster than syc clock tick time, so I set 100Khz timer, then add the following code in main():

volatile unsigned long ulHighFrequencyTimerTicks;

//extern void initialise_monitor_handles(void);

void configureTimerForRunTimeStats(void) {

 ulHighFrequencyTimerTicks = 0;

 HAL_TIM_Base_Start_IT(&htim13);

}

unsigned long getRunTimeCounterValue(void) {

 return ulHighFrequencyTimerTicks;

}

also add ulHighFrequencyTimerTicks++ in timer interrupt irqhandler.

it works every time you hit button "suspend" when program is running. the task list inforamtion will be updated.

yang hong
Associate II

one more, question is

is it possible to update task list information without suspending program running?

thanks