Empty output when using custom linker script

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Empty output when using custom linker script

ソリューションへジャンプ
1,225件の閲覧回数
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,058件の閲覧回数
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,059件の閲覧回数
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,058件の閲覧回数
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.