AnsweredAssumed Answered

Flash Programming on LPC4370 SPIFlash failing

Question asked by Dave Marples on Sep 6, 2016
Latest reply on Jan 4, 2017 by Harald Sonntag

A few months back there was a question raised about SPI Flash programming failing on a LPCLink2 board used as a target. For the life of me I cannot find it on this new improved system and all the links on the old lpcware site point to here now, so that doesn't help.

UPDATE: Now found the old thread at Flash driver operation failed - Program operation failed validation or readback compare | 


I have a custom design board that we are programming with LPCLink2 via LPCExpresso and, once if a while, it borks the SPIFlash (A Spansion FL032PIF device). The end result of this borkage is that it does not seem to be possible to un-write-protect the SPIFlash for future flash sequences so you're left with whatever happens to be in the flash at the point where it goes AWOL.


Has anyone else experienced this? Here is a typical programming sequence that goes wrong (but I'm not sure this trace is from a Spansion chip). I'd format this as code but that doesn't appear to be possible any more;


LPCXpresso RedlinkMulti Driver v8.1 (Mar 11 2016 13:35:29 - crt_emu_cm_redlink build 672)
Found chip XML file in /home/dmarples/Develop/llb_v2/ofiles/LPC4370.xml
Probe Firmware: LPC-LINK2 CMSIS-DAP V5.147 (NXP Semiconductors)
Serial Number:  IQCYEVCR
VID:PID:  1FC9:0090
USB Path: /dev/hidraw7
Emu(0): Connected&Reset. DpID: 2BA01477. CpuID: 410FC240. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
inspected v.2 External Flash Device on SPI /usr/local/lpcxpresso_8.1.4_606/lpcxpresso/bin/Flash/LPC18_43_SPIFI_8MB_64KB.cfx
image 'LPC18/43 Generic SPIFI Feb 16 2016 09:19:36'
flash variant 'W25Q64FV' detected (8MB = 128*64K at 0x14000000)
NXP: LPC4370  Part ID: 0x00000000
( 65) Chip Setup Complete
Connected: was_reset=true. was_stopped=false
LPCXpresso Free License - Download limit is 256K
Writing 42836 bytes to address 0x14000000 in Flash
ProgramPage (0x14000000, 0x10081000, 0x4000) status 0x1 - driver reported driver error - EXTSPI driver rc 10 - Program operation failed validation or readback compare
Target error from Commit Flash write: Ef(49): Flash driver operation gave error.