lpcware

Flash driver operation failed - Program operation failed validation or readback compare

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jan 4, 2017 by Harald Sonntag
Content originally posted in LPCWare by einsiek on Fri Mar 04 15:31:16 MST 2016
Hello,

After having used LPCXpresso with LPC4370 successfully for a few months, I have started to get a specific error during the Flash operation. This error has occurred on multiple boards (4 boards: 3 custom boards and 1 LPC-Link2 board), with different IDE version (v7.9, v8.0, v8.1), with different program (e.g. today it appears with the periph_blinky example program) and on different computer.

Here is the error message

op ProgramPage (0x14000000, 0x10081000, 0x4000) status 0x1 - driver reported driver error - EXTSPI driver rc 10 - Program operation failed validation or readback compare


This error occur apparently before the Flash driver writes the binary into the Flash, because the previous binary is still working after it. But then I'm not able to update new binaries or to debug the target anymore.

I have already tested the following operation:
[list]
  [*]Booting into ISP mode (ISP LOW, NRESET LOW, NRESET HIGH, ISP HIGH or Floating) => no effect
  [*]Enable Vector catch => no effect
  [*]Reduce the Wirespeed => no effect
  [*]Replace the Flash component on the board => no effect
[/list]


See below the Flash operation log message:

Ni: LPCXpresso RedlinkMulti Driver v8.1 (Feb 18 2016 18:44:09 - crt_emu_cm_redlink.exe build 650)
Pc: (  0) Reading remote configuration
Nc: Found chip XML file in D:/workdir/lpc_workdir/periph_blinky/Release/LPC4370.xml

Pc: (  5) Remote configuration complete
Nc: Probe Firmware: LPC-LINK2 CMSIS-DAP V5.147 (NXP Semiconductors)
Nc: Serial Number:  BYGWKSIS
Nc: VID:PID:  1FC9:0090
Nc: USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#7&1143ea45&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Pc: ( 30) Emulator Connected
Xs:
Xc:
Pc: ( 40) Debug Halt
Pc: ( 50) CPU ID
Nc: Emu(0): Connected&Reset. DpID: 2BA01477. CpuID: 410FC240. Info: <None>
Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Nc: inspected v.2 External Flash Device on SPI C:\nxp\LPCXpresso_8.1.0_597\lpcxpresso\bin\Flash\LPC18_43_SPIFI_GENERIC.cfx
Nc: image 'LPC18/43 Generic SPIFI Feb 16 2016 09:19:36'
Nc: flash variant 'S25FL016K' detected (2MB = 32*64K at 0x14000000)
Nc: NXP: LPC4370  Part ID: 0x00000000
Pc: ( 65) Chip Setup Complete
Nt: Connected: was_reset=true. was_stopped=false
Cr:v LPCXpresso Free License - Download limit is 256K
Pc: ( 70) License Check Complete
Nt: Loading 'periph_blinky.axf' ELF 0x14000000 len 0x11A4
Nt: Writing 4516 bytes to address 0x14000000 in Flash
Pb: 1 of 1 (  0) Writing pages 0-0 at 0x14000000 with 4516 bytes
Ps: (  0) at 14000000: 0 bytes - 0/4516
Ec: op ProgramPage (0x14000000, 0x10081000, 0x4000) status 0x1 - driver reported driver error - EXTSPI driver rc 10 - Program operation failed validation or readback compare

Pb: (100) Writing Flash ended with an error.
Ed:05: File 'periph_blinky.axf' load failure: Ef(49): Flash driver operation gave error.
Pc: (100) Target Connection Failed



I am running out of ideas to solve this problem. Could you please help me to find out what I'm currently doing wrong. I hope that with your help guys, I will be able to bring those boards back to life.

Best regards,

Outcomes