Skip to main content
Visitor II
December 7, 2016
Question

How do I check the code size in STVD?

  • December 7, 2016
  • 1 reply
  • 1630 views
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
    This topic has been closed for replies.

    1 reply

    ST Employee
    December 10, 2016
    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. 

    Visitor II
    December 12, 2016
    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... :\

    Visitor II
    December 12, 2016
    Posted on December 12, 2016 at 17:49

    Found the answer in this thread:

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

    Thanks