LPC 1857 SPIFI interfaced Quad SPI Flash (S25FL512) usage for both code execution and data storage.

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

LPC 1857 SPIFI interfaced Quad SPI Flash (S25FL512) usage for both code execution and data storage.

797 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ahmed_786 on Wed Jun 15 05:29:00 MST 2016
Hi,

I am using NXP LPC1857 Cortex M3 based controller project, project development in Keil V5.15.

My doubt is application based. I am interfacing external QSPI Flash S25FL512S and it is used to store code.At power on ,controller is booted from this external flash and starts executing.
Attachment shows the settings used for booting from SPIFI.
Now, my basic question since I am using this flash for code memory, can I use this same external flash for data storage (reading writing different records, menu settings, reports etc).
If yes, how???
Labels (1)
0 Kudos
2 Replies

523 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos

523 Views
lpcxpresso_supp
NXP Employee
NXP Employee

You can of course store any data you wish in the SPIFI flash device.

However you cannot program the device from code executing on the same flash device. If you wish to do this you would need to copy your flash programming code into RAM and execute from there until the programming operation completes.

Yours,

LPCXpresso-Support

0 Kudos