Skip to main content
Associate III
Jul 3, 2023 1:56 AM UTC
Question

Check the proper amount of usage per function for software operation

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

This topic has been closed for replies.

5 replies

LCE
Principal III
Jul 3, 2023 6:02 AM UTC

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.

joseph05Author
Associate III
Jul 3, 2023 6:32 AM UTC

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.
Jul 3, 2023 7:30 PM UTC

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

joseph05Author
Associate III
Jul 4, 2023 12:51 AM UTC

I want to know how to measure the load percentage.

Tesla DeLorean
Guru
Jul 4, 2023 2:26 AM UTC

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..