cancel
Showing results for 
Search instead for 
Did you mean: 

Calculate CPU Active % in STM32U575, FreeRTOS, and STM32CubeIDE

mdalal
Associate III

I have built a basic firmware for STM32U575 nucleo board with FreeRTOS with a feasibility of the CPU going into either sleep or stop modes. I want to calculate its CPU active % for a debug session.

Can you suggest how to get the active CPU % reliably and accurately in STM32CubeIDE?

3 REPLIES 3
Joe WILLIAMS
ST Employee

Hi mdalal

 

This post has been escalated to the ST Online Support Team for additional assistance.  We'll contact you directly.

Regards

Joe

STMicro Support

Andrew Neil
Super User

https://forums.freertos.org/t/profiling-tools-for-free-rtos/20085

https://community.st.com/t5/stm32cubeide-mcus/visualizing-freertos-tasks-graphically/td-p/664488

https://community.st.com/t5/stm32cubeide-mcus/freertos-runtime-percentage-calculations/td-p/633131

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
mdalal
Associate III

Hi, 

Thanks for the links. From the links, I understand that you have given 2 options:

- Use traceanalyzer with paid license - I do not have it

- Task execution % --> Can it give correct info when in low power mode (stop 3)? For me, the IDLE task active % is where the CPU is inactive and the remaining time is when the CPU is active. 

Can you clarify?