C project with LPCOpen for bootloading (To put LPCOpen in a certain memory section)

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

C project with LPCOpen for bootloading (To put LPCOpen in a certain memory section)

Jump to solution
725 Views
jespermadsen
Contributor III

I made a bootloader for LPC11A14 and this occupies the first 0x2000 bytes.

So the code in project I want to bootload should be located after 0x2000.

The problem is that my projekt links to the LPCOpen library and I don't know how to place the LPCOpen in other than the main section starting from 0x0000.

I added extra flash sections under MCU settings and 

with "Extra linker script input sections" inserted '*lpc_chip_11uxx_lib.a (.text .text*) | Flash2 | .text'

but it dont seem to work.

0 Kudos
Reply
1 Solution
717 Views
jespermadsen
Contributor III

Seems like the magic formular was:

*lpc_chip_11uxx_lib.a:*.o (.text .text*)

So now it works.

View solution in original post

0 Kudos
Reply
1 Reply
718 Views
jespermadsen
Contributor III

Seems like the magic formular was:

*lpc_chip_11uxx_lib.a:*.o (.text .text*)

So now it works.

0 Kudos
Reply