LPC54018 linker file question regarding SRAM addresses

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

LPC54018 linker file question regarding SRAM addresses

ソリューションへジャンプ
1,295件の閲覧回数
rawsewage
Contributor III

I'm writing software for the LPC54018J4MET180 and using Keil MDK for development.  The NXP DFP includes a default linker (scatter) file and there is something I don't understand.

When not running an image from flash, the SRAM (m_data) range is defined as 0x20000000 - 0x20028000.  This is a continuous bank of SRAM and this makes sense.

When running an image from flash (XIP), the SRAM range is 0x00000004 - 0x00030000.  This is a different bank of SRAM, but can anyone tell me why it doesn't start at address zero?  Are the first four bytes being used for something else?  I've looked but cannot find any reason for this.

sram.png

 

 

 

 

Thanks for any help!!

0 件の賞賛
返信
1 解決策
1,275件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Greg,

I think you change it to 0x00000000 also will be OK, you can test it.

 

Regards,

Alice

元の投稿で解決策を見る

2 返答(返信)
1,276件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Greg,

I think you change it to 0x00000000 also will be OK, you can test it.

 

Regards,

Alice

1,259件の閲覧回数
rawsewage
Contributor III

Thanks, everything works fine as expected.  I just wanted to make sure I wasn't missing anything.  Perhaps the scatter file should be updated in the NXP DFP.

0 件の賞賛
返信