各位好,我这边有一个Atmel ATSAMA5D31芯片用IAR 7.30版本建的工程编译出来的目标文件(.bin)只有800K左右,后面换成IAR 7.80版本编译以后目标文件就变得非常大,有接近24M, 而且我看文件中间大多填充的是0, 只是在文件末尾有放一些内容,我怀疑是ICF文件不兼容,因此将Icf贴了上来,有对IAR各个版本切换相关经验的兄弟能帮忙解答一下吗(附件中带了ICF文件以及.s文件)?
/*###ICF### Section handled by ICF editor, don't touch! ****/
/*-Editor annotation file-*/
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
/*-Specials-*/
define symbol __ICFEDIT_intvec_start__ = 0x20300000;
/*-Memory Regions-*/
define symbol __ICFEDIT_region_DDRAM_start__ = 0x20300000;
define symbol __ICFEDIT_region_DDRAM_end__ = 0x27FFFFFF; /* 128MB */
/*-Sizes-*/
define symbol __ICFEDIT_size_cstack__ = 0x80000;
define symbol __ICFEDIT_size_svcstack__ = 0x100;
define symbol __ICFEDIT_size_irqstack__ = 0x40000;
define symbol __ICFEDIT_size_fiqstack__ = 0x100;
define symbol __ICFEDIT_size_undstack__ = 0x100;
define symbol __ICFEDIT_size_abtstack__ = 0x100;
define symbol __ICFEDIT_size_heap__ = 0x600000;
/**** End of ICF editor section. ###ICF###*/
define memory mem with size = 4G;
define region RAM_region = mem:[from __ICFEDIT_region_DDRAM_start__ to __ICFEDIT_region_DDRAM_end__];
define region NVRAM_region = mem:[from 0x50000000 to 0x50007fff];
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { };
define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { };
define block FIQ_STACK with alignment = 8, size = __ICFEDIT_size_fiqstack__ { };
define block UND_STACK with alignment = 8, size = __ICFEDIT_size_undstack__ { };
define block ABT_STACK with alignment = 8, size = __ICFEDIT_size_abtstack__ { };
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
define block MEM_NCNB with alignment = 1024*1024 { section .mem_ncnb }; // cache off, write buffer off
define block MEM_NCB with alignment = 1024*1024 { section .mem_ncb }; // cache off, write buffer on
define block MEM_CNB with alignment = 1024*1024 { section .mem_cnb }; // cache on, write through
initialize by copy with packing = none { readwrite };
//initialize by copy with packing = none { section __DLIB_PERTHREAD }; // Required in a multi-threaded application
do not initialize { section .noinit, section NVRAM* };
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
place in RAM_region { readonly };
place in RAM_region { section ProgramEnd }; // 获取代码的长度
place in NVRAM_region { block NVRAM with fixed order {section NVRAM1, section NVRAM2, section NVRAM3,
section NVRAM4, section NVRAM5, section NVRAM6, section NVRAM7, section NVRAM8,
section NVRAM9, section NVRAM10, section NVRAM11, section NVRAM12, section NVRAM13,
section NVRAM14, section NVRAM15, section NVRAM16, section NVRAM17, section NVRAM18,
section NVRAM19, section NVRAM20, section NVRAM21, section NVRAM22, section NVRAM23,
section NVRAM24, section NVRAM25, section NVRAM26, section NVRAM27, section NVRAM28,
section NVRAM29, section NVRAM30, section NVRAM31, section NVRAM32, section NVRAM33,
section NVRAM34, section NVRAM35, section NVRAM36, section NVRAM37, section NVRAM38,
section NVRAM39, section NVRAM40, section NVRAM41, section NVRAM42, section NVRAM43,
section NVRAM44, section NVRAM45, section NVRAM46, section NVRAM47, section NVRAM48,
section NVRAM49, section NVRAM50, section NVRAM51, section NVRAM52, section NVRAM53,
section NVRAM54, section NVRAM55, section NVRAM56, section NVRAM57, section NVRAM58,
section NVRAM59, section NVRAM60, section NVRAM61, section NVRAM62, section NVRAM63,
section NVRAM64, section NVRAM65, section NVRAM66, section NVRAM67, section NVRAM68,
section NVRAM69, section NVRAM70, section NVRAM71, section NVRAM72, section NVRAM73,
section NVRAM74,
} };
place in RAM_region { readwrite,
block CSTACK, block SVC_STACK, block IRQ_STACK, block FIQ_STACK,
block UND_STACK, block ABT_STACK, block HEAP, };
place in RAM_region { block MEM_NCNB, block MEM_NCB, block MEM_CNB };
共5条
1/1 1 跳转至页
IAR7.30版本工程用IAR7.80版本编译文件变大
只看楼主 1楼
共5条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
与电子爱好者谈读图四被打赏50分 | |
与电子爱好者谈读图二被打赏50分 | |
【FRDM-MCXN947评测】Core1适配运行FreeRtos被打赏50分 | |
【FRDM-MCXN947评测】双核调试被打赏50分 | |
【CPKCORRA8D1B评测】---移植CoreMark被打赏50分 | |
【CPKCORRA8D1B评测】---打开硬件定时器被打赏50分 | |
【FRDM-MCXA156评测】4、CAN loopback模式测试被打赏50分 | |
【CPKcorRA8D1评测】--搭建初始环境被打赏50分 | |
【FRDM-MCXA156评测】3、使用FlexIO模拟UART被打赏50分 | |
【FRDM-MCXA156评测】2、rt-thread MCXA156 BSP制作被打赏50分 |