cancel
Showing results for 
Search instead for 
Did you mean: 

How do I check the code size in STVD?

Willian Lenert
Associate II
Posted on December 07, 2016 at 16:09

Is it possible to check the program size in STVD? So I can choose the correct Flash size of the MCU for my application...

#stm8 #code-size #stvd #cosmic
3 REPLIES 3
Seb
ST Employee
Posted on December 10, 2016 at 14:32

The linker typically can generate a xxx.map (text) file which contains memory (flash/ram) consumption and sometime a calling tree to manually estimate the deepest stack point (assuming non recursive functions). Usually the MAP file is next to the generated S19/HEX file which contains the Flash image of the program.

For cosmic, open the project setting and look at Linker Output options. There should be something like 'Generate Map File' as a check box. 

Posted on December 12, 2016 at 17:26

Thank you for our answer Sebastien,

I opened the .map file, but still don't know where is the code size information, the flash consumption... :\

Posted on December 12, 2016 at 17:49

Found the answer in this thread:

https://community.st.com/0D50X00009XkaWcSAJ

Thanks