cancel
Showing results for 
Search instead for 
Did you mean: 

How to check memory usage from output file that compiled with SW4STM32 IDE (System Workbench for STM32)?

jirdom
Associate II

I would like to know percentage of memory usage of the ROM and the RAM of the microcontroller from output file.

note **

I use source from application example named BLE_p2pClient under the Projects directory of the STM32Cube_FW_WB_V1.2.0 FW pacakge.

6 REPLIES 6
Markus GIRDLAND
ST Employee

You can access that information from the Build Analyzer view.

If you search for "Build Analyzer" in the Quick Access search bar you can open that view.

Hi Markus GIRDLAND

I installed SW4STM32 version 2.9 which download from "https://www.st.com/en/development-tools/sw4stm32.html"

I tried to search " Build Analyzer" in the Quick Access search bar but not found.

The Build Analyzer is only available in STM32CubeIDE, not in SW4STM32.

I misunderstood because the forum post has the tag/topic "STM32CubeIDE" so I thought that was the tool in question.

Hi Markus GIRDLAND

I able to check memory usage from "Build Analyzer" in STM32CubeIDE.

Thank you for support.

IKotz.1
Associate II

0693W00000Bc3xLQAR.pngSame as Markus, but accessed different way: Window/Show View/Build Analyzer (I use STM32CubeIDE 1.6.1)

Intector
Associate III

Hey,

you could add the linker option -Wl,--print-memory-usage to your project properties.

Screenshot 2024-10-03 153055.png

This will produce an output that looks something like this:

Screenshot 2024-10-03 153244.png

 

PS: 

Always be yourself. Unless you can be a pirate. Then always be a pirate.