LPC540xx - FLASH definition in linker script

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

LPC540xx - FLASH definition in linker script

862 Views
sbox
Contributor I

Hi everyone,

I wanted to create the linker script for my LPC540xx and so I took a look in the datasheet.

(https://www.nxp.com/docs/en/data-sheet/LPC540xx.pdf#page=59)

After I took a look at the memory map, I could't find the FLASH block, but instead at position 0x0 a SRAMX block(which I dont know anything about). So my question is now, where should I put the .text section and where the .data?

How should I use the 'Boot ROM' block in the memory?

Thank you in advance.

0 Kudos
Reply
1 Reply

722 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

You are right, the LPC540xx does not have on-chip parallel flash, So we recommend you use external spifi flash, whose address is located at the 0x1000 0000 - 0x17FF FFFF. On LPC540xx-EVK  board, the W25Q128JVFIM flash with spifi interface is populated, which is used to save/run application code.

 

xiangjun_rong_0-1675992948841.png

I copy it from UM11060.pdf.

 

There is exception, the LPC54018J2M have 2MB on-chip spifi flash, the LPC54018J4M has 4MB on-chip spifi flash, which are located at:0x1000 0000 - 0x17FF FFFF.

Pls download UM11060.pdf for the memory and spifi flash.

Hope it can help you

BR

XiangJun Rong