LPC54018 linker file question regarding SRAM addresses

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

LPC54018 linker file question regarding SRAM addresses

跳至解决方案
812 次查看
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 解答
792 次查看
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 回复数
793 次查看
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

776 次查看
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 项奖励
回复