7683 views|7 replies

3836

Posts

19

Resources
The OP
 

IAR compiled bin file size problem [Copy link]

I would like to ask you a question. After I compiled a project under IAR, the code information displayed was as follows: IAR Universal Linker V5.3.2.26 Copyright 1987-2012 IAR Systems AB. 1 894 bytes of CODE memory 184 bytes of DATA memory (+ 44 absolute ) 43 bytes of CONST memory But the size of the generated bin file is 32K. I selected raw-binary in linker->output. What is the reason? Actually, I want to make a remote upgrade program. I am using cc430. The on-chip code space is 32K. If I run the boot program, it will not be enough. Please help me, I will be very grateful. The original program, the bin file size is only 30-40K. After changing part of it, the bin size is 256MB. I can't find out the reason. The chip used is kinetis K10, IAR development environment.
This post is from Microcontroller MCU

Latest reply

Some people say that the reason why the bin file compiled by iar is large is that the link file icf includes a large address range. This project can only be used for online debugging. If you want to generate a bin file to download to the development board, you need to modify the icf file.  Details Published on 2018-12-7 15:15
 

2618

Posts

0

Resources
2
 
I guess every compilation takes up flash memory, and the original memory will not be cleared, so it becomes larger and there is not enough space.
This post is from Microcontroller MCU
 
 

62

Posts

0

Resources
3
 
Use ultraedit or vim to open the bin file in binary format and check whether there are a large number of consecutive 0s. If so, check whether the link script is described correctly.
This post is from Microcontroller MCU

Comments

Thanks for your guidance  Details Published on 2018-11-30 19:11
 
 
 

3836

Posts

19

Resources
4
 
BasaraTama posted on 2018-11-10 17:33 Use ultraedit or vim to open the bin file in binary format and observe whether there are a large number of consecutive 0s. If so, please check whether the link script is described correctly
Thank you for your guidance
This post is from Microcontroller MCU
 
 
 

2w

Posts

341

Resources
5
 
The on-chip code space is 32K. If you run the boot program again, after modifying a part of it, the bin space is 256MB. It is this large after modification.
This post is from Microcontroller MCU
 
 
 

2618

Posts

0

Resources
6
 
No, create a new project file and compile it.
This post is from Microcontroller MCU
 
 
 

6366

Posts

4936

Resources
7
 
The configuration file is not the default one, please add the .xcl file correctly again.
This post is from Microcontroller MCU
 
 
 

6366

Posts

4936

Resources
8
 
Some people say that the reason why the bin file compiled by iar is large is that the link file icf includes a large address range. This project can only be used for online debugging. If you want to generate a bin file to download to the development board, you need to modify the icf file.
This post is from Microcontroller MCU
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list