LPC54018 linker file question regarding SRAM addresses

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

LPC54018 linker file question regarding SRAM addresses

Jump to solution
584 Views
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 Kudos
1 Solution
564 Views
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

View solution in original post

2 Replies
565 Views
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

548 Views
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 Kudos