Hi
I accidentally initialized the SPIFI_CNS pin as ADC0_11 input on LPC54S018-EVK board, and now I can no longer write to Flash.
The output that is shown in the console (MCUXpresso IDE) is the following:
Opening flash driver LPC540xx_SPIFI_SFDP.cfx (already resident)
Using SOFT reset to run the flash driver
Flash variant 'JEDEC_SFDP_EF7018' detected (16MB = 256*64K at 0x10000000)
Writing 45472 bytes to address 0x10000000 in Flash
ProgramPage (0x10000000, 0x2290, 0x4000) status 0x1 - driver reported driver error - EXTSPI driver rc 8 - Program operation on block that is not blank
Sectors written: 1, unchanged: 0, total: 1
Closing flash driver LPC540xx_SPIFI_SFDP.cfx
Target error from Commit Flash write: Ef(49): Flash driver operation gave error.
GDB stub (C:\nxp\MCUXpressoIDE_11.8.0_1165\ide\plugins\com.nxp.mcuxpresso.tools.bin.win32_11.8.0.202307121429\binaries\crt_emu_cm_redlink) terminating - GDB protocol problem: Pipe has been closed by GDB.
I have tried various solutions found on the forum (the error is common), but none of them work.
I also tried using Segger J-Flash V7.92J and i can read the SPIFI Flash, but I can't write to it, or erase it.
How can I solve it?