cancel
Showing results for 
Search instead for 
Did you mean: 

Conclude from .s19 file size to occupied flash memory

felix239955_st
Associate
Posted on July 07, 2015 at 11:24

Hello

Does somebody know, how I can conclude from the size of a compile firmware in the .s19 format to the occupied flash memory size?

Reason of my question:

I have done the example

http://www.st.com/web/en/catalog/tools/PF258003

on a 8KB flash STM8S003K3T6C in ST Visual Develop with a Cosmic compiler. The file size of the compiled firmware release version is 11.9KB (=12,230 Bytes). But why can I programm this firmware without any problems in the 8KB flash memory of my STM8?

Is there a option in ST Visual Develop to display how much flash will be occupied by the firmware?

Thank you for your response.

Felix

#stm8 #flash-memory-size #s19
1 REPLY 1
luca239955_stm1_st
Senior II
Posted on July 08, 2015 at 11:36

a few suggestions:

- check in the map file the size of the linked application

- make sure you use the +split compiler option to exclude code you are not using

If you are still > 8k, open the .s19 with a text editor and check the last lines, see what addresses appear there: if they are >0xA000 (= 8k for an stm8) and you are still able to flash an 8k STM8 with no errors or warning there's probably something wrong with your flashing tool.