Linker load address

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

Linker load address

跳至解决方案
1,755 次查看
Bob4831
Contributor I

Hi All,

 

I modified one of the cookbook designs (ADC_SW_scan_flash) that came with my MPC5604B demo board, then flashed it via the PE Micro Multlink Universal into my MPC5605B target product.  That worked very well!  But…  the cookbook code loads at 0x20000.  My target needs me to load at 0x21000.  I tinkered with the linker’s .lcf file…

 

MEMORY

{

    internal_flash:       org = 0x00021000,   len = 0x00060000     // was org 0x20000

 

..and that changed my start address, but not the load address. 

I must be twisting the wrong knob.

Any thoughts?

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,494 次查看
stanish
NXP Employee
NXP Employee

Hello Bob4831,

 

If you are moving the main flash block (e.g. internal_flash in case of a cookbook example) you shall update ROM Image address + RAM buffer address. (these two addresses must match together for most flash loader - RAM buffer is not used) 

 

See attached screenshots where to find these settings in Classic nad Eclipse CW . In case you are using the CW compiler form the command line please use the options below:

 

-rambuffer 0x21000

-romaddr 0x21000

 

 

For more information about this topic I'd suggest you to see the Power Architecture Build Tools Reference Manual ("<CW for MPC55xx and MPC56xx 2.9>\Help\PDF\Power Architecture Build Tools Reference.pdf" ), section "Building a ROM Image"

 

 

Stanish

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,495 次查看
stanish
NXP Employee
NXP Employee

Hello Bob4831,

 

If you are moving the main flash block (e.g. internal_flash in case of a cookbook example) you shall update ROM Image address + RAM buffer address. (these two addresses must match together for most flash loader - RAM buffer is not used) 

 

See attached screenshots where to find these settings in Classic nad Eclipse CW . In case you are using the CW compiler form the command line please use the options below:

 

-rambuffer 0x21000

-romaddr 0x21000

 

 

For more information about this topic I'd suggest you to see the Power Architecture Build Tools Reference Manual ("<CW for MPC55xx and MPC56xx 2.9>\Help\PDF\Power Architecture Build Tools Reference.pdf" ), section "Building a ROM Image"

 

 

Stanish

0 项奖励
回复