Ielftool generated binary file size

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

Ielftool generated binary file size

跳至解决方案
885 次查看
itsme12_01
Contributor II

Hello,

I used the iefltool to generate the .bin file from .out file. The .out file is only around 400kB in size but the .bin file seems to be over 1000kB in size. Why is the .bin file size very high ? How would I be able to reduce the size ?

Regards.

标记 (3)
0 项奖励
1 解答
863 次查看
itsme12_01
Contributor II

Hello, I apologize for the late reply. 
I found the reason for a huge binary file size.
When placing a section into memory, if the segment is divided between two memory regions, then while creating a .bin file, the memory region in between the 2 regions will also be considered. Hence results in huge file size.
For example,
If I place const SECTIONA at 0x2000 to 0x4000
place const SECTIONB at 0x8000 to 0xF000
Then when creating the binary file,
For segment const, the memory region considered would be (0xF000 - 0x2000). The gaps between would be filled with 0s. Hence results in a huge file size.

Hope this becomes helpful to someone in furture.

Thank you.

在原帖中查看解决方案

标记 (1)
2 回复数
877 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
To provide the fastest possible support, I was wondering if you can introduce the steps for replicating the phenomenon.
Have a great day,
TIC

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
864 次查看
itsme12_01
Contributor II

Hello, I apologize for the late reply. 
I found the reason for a huge binary file size.
When placing a section into memory, if the segment is divided between two memory regions, then while creating a .bin file, the memory region in between the 2 regions will also be considered. Hence results in huge file size.
For example,
If I place const SECTIONA at 0x2000 to 0x4000
place const SECTIONB at 0x8000 to 0xF000
Then when creating the binary file,
For segment const, the memory region considered would be (0xF000 - 0x2000). The gaps between would be filled with 0s. Hence results in a huge file size.

Hope this becomes helpful to someone in furture.

Thank you.

标记 (1)