Wednesday, June 17, 2020

FreeRTOS Task Runtime Statistics for NXP i.MX RT1064 @McuOnEclipse @NXP

FreeRTOS can report the CPU percentage spent in each task. Some extra work is needed to get this information though. In an MCU on Eclipse article, they show how to do this for the NXP i.MX1064.

…the RTOS needs an extra timer to measure task execution time. This timer value is checked at task context switch time and stored in the task control block information section. With little overhead, the RTOS knows how the time is spent between the tasks (this does not separate out time spent in interrupts).

In the article, the methodology is shown using the NXP i.MXRT1064 EVK board. The example project used is available on GitHub.

See the entire process on MCU on Eclipse.

No comments:

Post a Comment