Empty output when using custom linker script

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Empty output when using custom linker script

Jump to solution
1,564 Views
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.

Labels (1)
1 Solution
1,397 Views
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.

View solution in original post

0 Kudos
Reply
2 Replies
1,398 Views
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 Kudos
Reply
1,397 Views
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.