Skip to main content
Associate III
February 17, 2025
Question

Calculate CPU Active % in STM32U575, FreeRTOS, and STM32CubeIDE

  • February 17, 2025
  • 3 replies
  • 826 views

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

Joe WILLIAMS
ST Employee
February 18, 2025

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
February 18, 2025
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.
mdalalAuthor
Associate III
February 25, 2025

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?