cancel
Showing results for 
Search instead for 
Did you mean: 

Check the proper amount of usage per function for software operation

joseph05
Associate III

I am trying to develop embedded controller  firmware that runs on stm32f429zit6. How much of the performance of the items below is appropriate for stable firmware operation?

1. Clock frequency: 180MHz
2. Flash memory: 2MB
3. SRAM: 192KB

5 REPLIES 5
LCE
Principal

I don't really get what you want to know.

I think neither of these properties have anything to do with "stable firmware operation".

You have to write stable code, working with the given properties of the MCU.
So you might want to do some calculations in advance concerning memory and speed.

joseph05
Associate III

Ok. I understood your comment. It is possible to check the flash memory code size and sram code size of the software under development using stm32cubeide, but it is not possible to check the mcu core usage. Is there any way to measure mcu core usage?

Pavel A.
Evangelist III

MCU core usage? Is this the load percentage (or idle time percentage)? Or memory usage in  runtime (stack, heap)?

joseph05
Associate III

I want to know how to measure the load percentage.

You could use a TIM or DWT CYCCNT to quantify the amount of time spent in an idle loop (WFI ?) vs in code you have running.

You could also benchmark specific functions or groups of functions, or algorithms at an instruction cycles level.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..