Content originally posted in LPCWare by bavarian on Wed Mar 09 04:19:36 MST 2016
Hello Gerard,
simply put the part of the program which is doing the erase/program activity to the internal SRAM, then it will work the same way as from internal flash.
However, even if I used the word "simply", there are some things to consider:
[list]
[*] depending on where you get the data from, take care that sub-functions for UART, I2S driver etc also need to run from SRAM at the time you are busy on the SPIFI. If you can work in batching mode (get data in - program it - get next data - etc) then this is not mandatory.
[*] Take care that the interrupt vectors are normally located in the SPIFI. So if you need to serve interrupts during erase/program cycles, then the interrupt vector table and the respective ISRs must be in SRAM. If you relocate it at runtime or put it statically into SRAM is up to you.
[/list]
Regards,
NXP Support Team