How can I understand the FLASH occupation?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I understand the FLASH occupation?

Jump to solution
857 Views
fabrizioimpinna
Contributor II

Good afternoon,

I am trying to understand how much FLASH memory is occupied by the code.

I have found some informations in the .map file but they are not in agreement with the .sx size.

.sx size: 9,616 bytes

 

.map informations:

 

     Summary of section sizes per section type:

     READ_ONLY (R):             F05 (dec:     3845)

     READ_WRITE (R/W):       142 (dec:      322)

     NO_INIT (N/I):                  161 (dec:      353)

 

     Total size of all blocks to be downloaded: 3845

 

Which is the right FLASH occupation? Which is the size of the downloaded code?

 

Thanks

 

Fabrizio

Labels (1)
0 Kudos
1 Solution
685 Views
kef2
Senior Contributor IV

Hi Fabrizio,

3845 is your used flash size. Size of S19 (SX) file is more than 2x bigger:

https://en.wikipedia.org/wiki/SREC_(file_format)

Regards,

Edward

View solution in original post

3 Replies
686 Views
kef2
Senior Contributor IV

Hi Fabrizio,

3845 is your used flash size. Size of S19 (SX) file is more than 2x bigger:

https://en.wikipedia.org/wiki/SREC_(file_format)

Regards,

Edward

685 Views
RadekS
NXP Employee
NXP Employee

Hi Ed, you are right.

Hi Fabrizio,

Just explanation of “Size of S19 (SX) file is more than 2x bigger”

In SREC file, every byte is interpreted as hexadecimal number – by two chars. For example 0b11111111=255=0xFF (in file it is just FF)

Additionally, SREC lines always contain type of record, number of bytes, address and CRC checksum.

SREC files may contain also quite unimportant header and debugger records…

Therefore size of SREC file does not fit with occupied flash.


I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

685 Views
fabrizioimpinna
Contributor II

Thank you for the information.

Have a nice evening

Fabrizio

0 Kudos