op ProgramPage (0x14000000, 0x10081000, 0x4000) status 0x1 - driver reported driver error - EXTSPI driver rc 10 - Program operation failed validation or readback compare |
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 |
Hi Rodri,
thank you so much too, your solution with lpclink2-config-tool works perfectly for me too!
I also had a LPC Link II and worked with it 3 month. This morning, the same error came-up.
As I already wanted to change to the next LPC Link II, I found your post.
I also had a look to your code "Test_LED" because I wanted to find-outwhat we have done both
to generate this error. We both use the USB stack and we both us a Timer Interrup And we both use the HSADC.
My error came up (after months of no error) after I used the ADC, the USB stack (HID device) and the SysTick
interrupt all together. The USB stack hangs-up and the error "no more programmable flash) occurs.
All further information I will write on
Flash Programming on LPC4370 SPIFlash failing (as suggested by Dave) to also avoid 2 threads.
Again thank you Rodri, you saved my day.
Harry
Are you seeing this issue with LPCXpresso IDE and it's SPIFI flash driver or with LPCScrypt or both. And with which versions?
Can you provide a log of the actual output that you see?
And how are you connecting the board to your PC - directly or through a hub? Have you tried a different USB port? A different USB cable? And does connecting through a powered USB hub make any difference (or direct to the PC if you are using a hub) ? Might be interesting to know if you see the same problem using a different PC as well. My best guess is that this is some marginal power issue.
Regards,
LPCXpresso Support
Folks,
For the purpose of avoiding two threads diverging and covering the same material, there is material related to this question (including a reply to the inquiry posted directly above) over at;
Hi,
I'm having exactly the same issues with the LPC4370 and a W25Q64FVSSIG flash chip.
The only way I can get it unbricked is to solder a new flash chip on the board (currently on my 8th chip arg!).
Does anyone have a real solution yet?
C:\nxp\LPCScrypt>scripts\boot_lpcscrypt.cmd Booting LPCScrypt target with "LPCScrypt_83.bin.hdr" LPCScrypt target booted C:\nxp\LPCScrypt>bin\lpcscrypt.exe erase SPIFI Erasing SPIFI ... completed in 1.627s C:\nxp\LPCScrypt>bin\lpcscrypt.exe program "d:\myproject\Release\myprogram.bin" SPIFI . Programmed 16296 bytes to 0x14000000 in 0.043s (369.879KB/sec) C:\nxp\LPCScrypt>bin\lpcscrypt.exe verify "d:\myproject\Release\myprogram.bin" SPIFI . Verified 16296 bytes to 0x14000000 in 0.014s (1147.125KB/sec) |
#if defined (__CODE_RED) #include <NXP/crp.h> // Variable to store CRP value in. Will be placed automatically // by the linker when "Enable Code Read Protect" selected. // See crp.h header for more information __CRP const unsigned int CRP_WORD = CRP_NO_CRP ; #endif |
15: Target error from Commit Flash write: Ef(34): Timed-out initializing flash. |