Skip to main content
Visitor II
July 25, 2012
Question

STM8 code size

  • July 25, 2012
  • 1 reply
  • 685 views
Posted on July 25, 2012 at 11:59

Hi, I am new here, and new with STM8. I wrote some code and it works fine :). For final production I want use smaller STM8.

Where can I find how big is code? I want use a STM with flash memory as small as posible (or as cheapest as posible)

Now I am using stm8-dicovery, STVD and cosmic compiler.

#stm8s #stm8-discovery
    This topic has been closed for replies.

    1 reply

    Visitor II
    August 14, 2012
    Posted on August 14, 2012 at 09:55

    look at this thread :

    [DEAD LINK /public/STe2ecommunities/mcu/Lists/stm81/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/stm81/Output Size in IDE (ROM RAM Usage)&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580001E3853D9DB932A46A3FE4CD15CAB46FB]https://my.st.com/public/STe2ecommunities/mcu/Lists/stm81/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fstm81%2fOutput%20Size%20in%20IDE%20%28ROM%20%20RAM%20Usage%29&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580001E3853D9DB932A46A3FE4CD15CAB46FB

    You'll find both, how to see how big is your code when you compile, and how to reduce its size by modifying a small option of your compiler.

    (for mine, it divided it by 5 ! ^^ )