Flash Memory Status

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
Alan_37
Posts: 119
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 35 times
Been thanked: 17 times

Flash Memory Status

Post by Alan_37 »

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? :)

Oscar_T
Posts: 89
Joined: Wed Dec 02, 2020 10:06 am
Location: Italy
Has thanked: 37 times
Been thanked: 10 times

Re: Flash Memory Status

Post by Oscar_T »

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)
Attachments
space.png
space.png (36.1 KiB) Viewed 2142 times

Alan_37
Posts: 119
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 35 times
Been thanked: 17 times

Re: Flash Memory Status

Post by Alan_37 »

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
-
MCUSP.png
MCUSP.png (22.35 KiB) Viewed 2134 times
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
-
File size.png
File size.png (37.28 KiB) Viewed 2134 times
-

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

Post Reply