Hi, When I am programming I usually wonder how much space I have left on the Microcontroller.
Could we have some tool to indicate this ? or maybe already there and I don't know about it?
Flash Memory Status
-
- Posts: 119
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 7:23 pm
- Has thanked: 35 times
- Been thanked: 17 times
-
- Posts: 89
- Joined: Wed Dec 02, 2020 10:06 am
- Location: Italy
- Has thanked: 37 times
- Been thanked: 10 times
Re: Flash Memory Status
Hi Alan
Flash memory occupied is usually reported at compile time.
I'll show you an example.
This is the message for an stm32
The code size (text), constant data (data) and global variables or statically allocated variables (bss), all in decimal. The sum of text+data+bss is shown in dec(imal) and hex(adecimal)
Flash memory occupied is usually reported at compile time.
I'll show you an example.
This is the message for an stm32
The code size (text), constant data (data) and global variables or statically allocated variables (bss), all in decimal. The sum of text+data+bss is shown in dec(imal) and hex(adecimal)
- Attachments
-
- space.png (36.1 KiB) Viewed 2142 times
Re: Flash Memory Status
Hi Oscar, Thanks for your reply
I have searched a bit on the net and could not find a tool that does that so I thought
I build one myself and dedicated around 2 hours to this.
Using Labview I was able to build a tool that reads the hex file and calculates the space taken and what's left
here is a screen shoot
- but then I found out that because the STM compiler also produces the bin file was much easier to just look
at the bin file size but ok at least I could verify that the tool works well as you can see from the properties
of the bin file below
- -
I am Attaching the file maybe someone can find it useful ( MCU SPACE.zip) it can only be opened with Labview 2019.
I have searched a bit on the net and could not find a tool that does that so I thought
I build one myself and dedicated around 2 hours to this.
Using Labview I was able to build a tool that reads the hex file and calculates the space taken and what's left
here is a screen shoot
- but then I found out that because the STM compiler also produces the bin file was much easier to just look
at the bin file size but ok at least I could verify that the tool works well as you can see from the properties
of the bin file below
- -
I am Attaching the file maybe someone can find it useful ( MCU SPACE.zip) it can only be opened with Labview 2019.
- Attachments
-
- MCU SPACE.zip
- (45.43 KiB) Downloaded 133 times