Anyone have example code on how to do this successfully? I cannot for the life of me make this work successfully.
Relocating FlashCommandSequence to SRAM
Enabling and Disable Interrupts - around the Flash function calls
setting MCM_PLACR |= MCM_PLACR_ESFC_MASK
I'm not sure what else to do, I'm at a loss. Please post some code that makes the SPI driver fetching 1kB sector and writing that same 1kB sector to internal flash in a loop at subsequent addresses. I can't imagine no one has done this before.