vTaskGetRunTimeStats

Hi, I’m trying to use vTaskGetRunTimeStats() function to print task information on ARM STM32f. Are there any previous threads for this topic which i can refer to? I could not get any info for this HW so far. I want to know how to configure the timer specifically. As this is where I’m stuck.

vTaskGetRunTimeStats

I presume you have seen this page? https://www.freertos.org/rtos-run-time-stats.html Configuring a clock is somewhat MCU specific, so suggest looking at the hardware manual of the chip you are using to find an appropriate clock source as a first step.

vTaskGetRunTimeStats

Hi Richard, Yes i have gone through this page. I wanted to know if there is a similar example in any of the threads for STM32F072x8. I checked the hardware manual and using a general purpose timer (up/down counter type).

vTaskGetRunTimeStats

I’m afraid I’m not aware of anything published, but that is not to say there isn’t something lying around.

vTaskGetRunTimeStats

Alright, I will try to look into more and post here once I’m able to solve this issue.

vTaskGetRunTimeStats

Hi Richard, looks like the timer issue is solved, but now I am facing error using sprintf funtion from printf-stdarg.c. I am getting makefile error here. Can you please suggest me what changes to be made in makefile to support the function?

vTaskGetRunTimeStats

What is the error you are getting?