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.
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.
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