2016-12-07 07:09 AM
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 #cosmic2016-12-10 05:32 AM
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.
2016-12-12 09:26 AM
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... :\
2016-12-12 09:49 AM
Found the answer in this thread:
https://community.st.com/0D50X00009XkaWcSAJ
Thanks