Empty output when using custom linker script

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

Empty output when using custom linker script

跳至解决方案
1,180 次查看
diegobarile
Contributor II

Hi guys.

I'm developing the FW of one LPC11C24 board using LPCXpresso v8.0.0 [Build 526].
When I trying to using a custom linker script to shift the release code from sector 0 to sector 1 (0x1000) the compiler generates one empty output like the follow:

ext databssdec hex filename
00000LeMiG.axf


The output file LeMiG.axf is empty.
If I keep the default script all builds fine.


I've attached my custom linker file.


Where I wrong?
Thanks in advance.

Diego.

标签 (1)
1 解答
1,013 次查看
diegobarile
Contributor II

Hi.

Solved by myself.

There are required not one but three files:

XXX_Release.ld
XXX_Release_library.ld
XXX_Release_memory.ld

Also It seems to be recommended to put the files under a different folder.

Thanks.

在原帖中查看解决方案

0 项奖励
2 回复数
1,014 次查看
diegobarile
Contributor II

Hi.

Solved by myself.

There are required not one but three files:

XXX_Release.ld
XXX_Release_library.ld
XXX_Release_memory.ld

Also It seems to be recommended to put the files under a different folder.

Thanks.

0 项奖励
1,013 次查看
converse
Senior Contributor V

You don't need a custom linker script if you are just moving the base of memory - you can just use the memory configuration editor - see Chapter 14 of the User Manual.