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

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

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

跳至解决方案
724 次查看
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 项奖励
回复
1 解答
716 次查看
jespermadsen
Contributor III

Seems like the magic formular was:

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

So now it works.

在原帖中查看解决方案

0 项奖励
回复
1 回复
717 次查看
jespermadsen
Contributor III

Seems like the magic formular was:

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

So now it works.

0 项奖励
回复