cancel
Showing results for 
Search instead for 
Did you mean: 

STM8 code size

sm2
Associate II
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
1 REPLY 1
thibaut2
Associate II
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 ! ^^ )