LPC54016 Flash to RAM

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

LPC54016 Flash to RAM

Jump to solution
512 Views
DanIton92
Contributor I

Hello NXP community.

I am running a project using LPC54016JBD100E MCU and I have a problem loading the IMG from external flash(W25Q128JVFM) to RAM.

The problem is that that using the IMG from the flash slowing my project , functions that works perfectly by running from RAM does not work running from my FLASH , so this is the reason I want to copy the IMG from FLASH to RAM.

  • ISP pins configure as HIGH,HIGH,HIGH
  • IMG is loading from flash without problem.
  • W25Q128JVFM defined on startup.

Looking at the datasheet and user manual I saw a img_type  bit that can be configure,

to copy the IMG from FLASH to RAM  ,by changing XIP bit to  0 (load img),

but when I changed the__imghdr_imagetype = 3; to __imghdr_imagetype = 1, the system did not succeed to upload from the ext FLASH.

 

Also I tried to change the IMG_BAUDRATE from 0 to 96000000 , but the clock remain 24Mhz.

But the best will be to find a solution to copy from flash to ram,

I will be glad for any guidance, thank you.

 

Best regards Dan Iton.

 

0 Kudos
Reply
1 Solution
493 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @DanIton92 

You can refer to LPC54018M SDK demo running in RAM, for example hello_world,

it is copy from external flash to RAM.

The demos without xip normal run in RAM.

Alice_Yang_0-1701158352149.png

 

BR

Alice

 

View solution in original post

0 Kudos
Reply
1 Reply
494 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @DanIton92 

You can refer to LPC54018M SDK demo running in RAM, for example hello_world,

it is copy from external flash to RAM.

The demos without xip normal run in RAM.

Alice_Yang_0-1701158352149.png

 

BR

Alice

 

0 Kudos
Reply