How can I understand the FLASH occupation?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How can I understand the FLASH occupation?

跳至解决方案
1,969 次查看
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

标签 (1)
0 项奖励
回复
1 解答
1,797 次查看
kef2
Senior Contributor V

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

在原帖中查看解决方案

3 回复数
1,798 次查看
kef2
Senior Contributor V

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

1,797 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

1,797 次查看
fabrizioimpinna
Contributor II

Thank you for the information.

Have a nice evening

Fabrizio

0 项奖励
回复