LPC54S018M without external SDRAM and XIP image

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

LPC54S018M without external SDRAM and XIP image

721 Views
anandkrs
Contributor I

I have a board based on the LPC54S018M (4MB internal ROM) and with no external SDRAM 

I am able to test a sample application (lwip_dhcp) from the SDK, And this sample application looks like a non-XIP based image. 

Now when I convert the image to XIP image with with these macro "XIP_IMAGE" & "IMG_BAUDRATE=96000000"

and use the below linker file settings 

HEAP_SIZE  = DEFINED(__heap_size__)  ? __heap_size__  : 0x0400;
STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : 0x0800;

IMAGE_START_ADDR  = DEFINED(XIP_IMAGE)  ? 0x10000000  : 0x00000000;
DATA_START_ADDR   = DEFINED(XIP_IMAGE)  ? 0x00000004  : 0x20000000;
TEXT_SECTION_SIZE = DEFINED(XIP_IMAGE)  ? 0x000FFE34  : 0x0002FE00;
DATA_SECTION_SIZE = DEFINED(XIP_IMAGE)  ? 0x0002FFFC  : 0x00028000;
With the XIP Image it's didn't even print the messaged after board & uart initialization.
Would like to know if its possible to run XIP image on the LPC54S018M based board with out the external SDRAM. 
Also I  couldn't understand the difference between the image mapping between XIP & non-XIP image in this case. 
Appreciate for any pointer / help in this regard.
Labels (1)
0 Kudos
1 Reply

685 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Anand Singh,

XIP: eXecute In Place

meaning process image directly in FLASH.

NO-XIP meaning copy image from FALSH to RAM to run.

About change no-xip to XIP, if you use MCUXpresso IDE, try to disable "Plain load image" , the re-build.

 

pastedImage_2.png

 

And if you haven't SDRAM, you need config the data in SDRAM to other RAM.

 

Regards

Alice

0 Kudos