Hi,
I am having LPC4330 Xpresso board and LPC link2.
Don't know what I had done but now I am not able to download any code into flash.
And I am not able to erase the flash too.
I tried boot ISP, vector catch methods discussed in this forum but no help.
This is the message I get when I try to load program. Please help.
I tried with other flash drivers: LPC18_43_GENERIC.cfx and LPC18_43_SPIFI_16MB_64KB but same result.
I am trying one of LPCOpen examples for download. It worked before. I tried one of my own program and after that this happened. Now I am not able to load LPCOpen examples also.
If I don't enable vector catch, it reports erase successfully but I see that contents are still present in flash (resetting executes previous program).
Flash erase log:
Ni: LPCXpresso RedlinkMulti Driver v8.2 (Sep 5 2016 10:13:28 - crt_emu_cm_redlink build 725)
Pc: ( 0) Reading remote configuration
Nc: Found chip XML file in /home/socoptimum/workspaces/lpc4330/dualcore_blinky/Debug/LPC4330.xml
Pc: ( 5) Remote configuration complete
Nc: Probe Firmware: LPC-LINK2 CMSIS-DAP V5.173 (NXP Semiconductors)
Nc: Serial Number: IWFWCVCV
Nc: VID:PID: 1FC9:0090
Nc: USB Path: /dev/hidraw1
Pc: ( 30) Emulator Connected
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 /usr/local/lpcxpresso_8.2.2_650/lpcxpresso/bin/Flash/LPC18_43_SPIFI_16MB_64KB.cfx
Nc: image 'LPC18/43 Generic SPIFI Jun 21 2016 11:54:07'
Nc: Opening flash driver /usr/local/lpcxpresso_8.2.2_650/lpcxpresso/bin/Flash/LPC18_43_SPIFI_16MB_64KB.cfx
Nc: AFTER driver startup timeout
Wc: Driver Addresses
Wc: Start: 10000000
Wc: Entry: 10000035
Wc: End: 10001F98
Wc: Stack: 10081000
Wc: Mailbox:10089000
Wc: Driver Register State
Wc: R0: 10089000
Wc: R1: 00000000
Wc: R2: 00000000
Wc: R3: 00000000
Wc: R4: 00000000
Wc: R5: 00000000
Wc: R6: 00000000
Wc: R7: 00000000
Wc: R8: 00000000
Wc: R9: 00000000
Wc: R10: 00000000
Wc: R11: 00000000
Wc: R12: 00000000
Wc: SP: 10080FE0
Wc: LR: FFFFFFF9 (exception from main thread)
Wc: PC: FFFFFFFE
Wc: xPSR: 01000003
Wc: MSP: 10080FE0
Wc: PSP: 10081000
Wc: CFBP: 00000001
Wc:Stacked Exception information
Wc:10080FFC: xPSR: 01000000
Wc:10080FF8: VECTPC: 10000034
Wc:10080FF4: LR: 10000035
Wc:10080FF0: R12: 00000000
Wc:10080FEC: R3: 00000000
Wc:10080FE8: R2: 00000000
Wc:10080FE4: R1: 00000000
Wc:10080FE0: R0: 10089000
Wc:Exception registers
Wc:E000ED04: ICSR: 00400803 (ISRPEND, VECTPEND=0(none), RETTOBASE, VECTACTIVE=3(hard fault))
Wc:E000ED28: MMFSR: 01 (IACCVIOL)
Wc:E000ED29: BFSR: 00
Wc:E000ED2A: UFSR: 0000
Wc:E000ED2C: HFSR: 00000002 (VECTBL)
Wc:E000ED30: DFSR: 00000000
Wc:E000ED3C: AFSR: 00000000
Wc:E000ED24: SHCSR: 00000000
Wc:E000ED34: MMAR: E000EDF8
Wc:E000ED38: BFAR: E000EDF8
Wc:VECTPC instructions near 10000034
Wc:10000030: 0000
Wc:10000032: 0000
Wc:10000034: 0004
Wc:10000036: B672
Wc:10000038: F000
Wc:1000003A: F854
Nc: Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash.
Nc: NXP: LPC4330 Part ID: 0x00000000
Pc: ( 65) Chip Setup Complete
Nt: Connected: was_reset=false. was_stopped=true
Cr:v LPCXpresso Free License - Download limit is 256K
Pc: ( 70) License Check Complete
Nc: Opening flash driver /usr/local/lpcxpresso_8.2.2_650/lpcxpresso/bin/Flash/LPC18_43_SPIFI_16MB_64KB.cfx
Nc: AFTER driver startup timeout
Wc: Driver Addresses
Wc: Start: 10000000
Wc: Entry: 10000035
Wc: End: 10001F98
Wc: Stack: 10081000
Wc: Mailbox:10089000
Wc: Driver Register State
Wc: R0: 10089000
Wc: R1: 00000000
Wc: R2: 00000000
Wc: R3: 00000000
Wc: R4: 00000000
Wc: R5: 00000000
Wc: R6: 00000000
Wc: R7: 00000000
Wc: R8: 00000000
Wc: R9: 00000000
Wc: R10: 00000000
Wc: R11: 00000000
Wc: R12: 00000000
Wc: SP: 10080FE0
Wc: LR: FFFFFFF9 (exception from main thread)
Wc: PC: FFFFFFFE
Wc: xPSR: 01000003
Wc: MSP: 10080FE0
Wc: PSP: 10081000
Wc: CFBP: 00000001
Wc:Stacked Exception information
Wc:10080FFC: xPSR: 01000000
Wc:10080FF8: VECTPC: 10000034
Wc:10080FF4: LR: 10000035
Wc:10080FF0: R12: 00000000
Wc:10080FEC: R3: 00000000
Wc:10080FE8: R2: 00000000
Wc:10080FE4: R1: 00000000
Wc:10080FE0: R0: 10089000
Wc:Exception registers
Wc:E000ED04: ICSR: 00400803 (ISRPEND, VECTPEND=0(none), RETTOBASE, VECTACTIVE=3(hard fault))
Wc:E000ED28: MMFSR: 01 (IACCVIOL)
Wc:E000ED29: BFSR: 00
Wc:E000ED2A: UFSR: 0000
Wc:E000ED2C: HFSR: 00000002 (VECTBL)
Wc:E000ED30: DFSR: 00000000
Wc:E000ED3C: AFSR: 00000000
Wc:E000ED24: SHCSR: 00000000
Wc:E000ED34: MMAR: E000EDF8
Wc:E000ED38: BFAR: E000EDF8
Wc:VECTPC instructions near 10000034
Wc:10000030: 0000
Wc:10000032: 0000
Wc:10000034: 0004
Wc:10000036: B672
Wc:10000038: F000
Wc:1000003A: F854
Nc: Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash.
Ed:04: Failed to erase flash: Ef(34): Timed-out initializing flash.
Pc: (100) Target Connection Failed
code download log:
LPCXpresso RedlinkMulti Driver v8.2 (Sep 5 2016 10:13:28 - crt_emu_cm_redlink build 725)
Found chip XML file in /home/socoptimum/workspaces/lpc4330/dualcore_blinky/Debug/LPC4330.xml
( 5) Remote configuration complete
Probe Firmware: LPC-LINK2 CMSIS-DAP V5.173 (NXP Semiconductors)
Serial Number: IWFWCVCV
VID:PID: 1FC9:0090
USB Path: /dev/hidraw1
Vector catch on SYSRESETREQ signal
Emu(0): Connected&Reset. DpID: 2BA01477. CpuID: 410FC240. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled.
inspected v.2 External Flash Device on SPI /usr/local/lpcxpresso_8.2.2_650/lpcxpresso/bin/Flash/LPC18_43_MX25L3235E.cfx
image 'LPC18/43 Generic SPIFI Jun 21 2016 11:54:07'
Opening flash driver /usr/local/lpcxpresso_8.2.2_650/lpcxpresso/bin/Flash/LPC18_43_MX25L3235E.cfx
AFTER driver startup timeout
Driver Addresses
Start: 10000000
Entry: 10000035
End: 10001F98
Stack: 10081000
Mailbox:10089000
Driver Register State
R0: 10089000
R1: 00000000
R2: 00000000
R3: 00000000
R4: 00000000
R5: 00000000
R6: 00000000
R7: 00000000
R8: 00000000
R9: 00000000
R10: 00000000
R11: 00000000
R12: 00000000
SP: 10080FE0
LR: FFFFFFF9 (exception from main thread)
PC: FFFFFFFE
xPSR: 01000003
MSP: 10080FE0
PSP: 10081000
CFBP: 00000001
Stacked Exception information
10080FFC: xPSR: 01000000
10080FF8: VECTPC: 10000034
10080FF4: LR: 10000035
10080FF0: R12: 00000000
10080FEC: R3: 00000000
10080FE8: R2: 00000000
10080FE4: R1: 00000000
10080FE0: R0: 10089000
Exception registers
E000ED04: ICSR: 00000803 (VECTPEND=0(none), RETTOBASE, VECTACTIVE=3(hard fault))
E000ED28: MMFSR: 01 (IACCVIOL)
E000ED29: BFSR: 00
E000ED2A: UFSR: 0000
E000ED2C: HFSR: 00000002 (VECTBL)
E000ED30: DFSR: 00000000
E000ED3C: AFSR: 00000000
E000ED24: SHCSR: 00000000
E000ED34: MMAR: E000EDF8
E000ED38: BFAR: E000EDF8
VECTPC instructions near 10000034
10000030: 0000
10000032: 0000
10000034: 0004
10000036: B672
10000038: F000
1000003A: F854
Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash.
NXP: LPC4330 Part ID: 0x00000000
( 65) Chip Setup Complete
Connected: was_reset=true. was_stopped=false
LPCXpresso Free License - Download limit is 256K
Opening flash driver /usr/local/lpcxpresso_8.2.2_650/lpcxpresso/bin/Flash/LPC18_43_MX25L3235E.cfx
AFTER driver startup timeout
Driver Addresses
Start: 10000000
Entry: 10000035
End: 10001F98
Stack: 10081000
Mailbox:10089000
Driver Register State
R0: 10089000
R1: 00000000
R2: 00000000
R3: 00000000
R4: 00000000
R5: 00000000
R6: 00000000
R7: 00000000
R8: 00000000
R9: 00000000
R10: 00000000
R11: 00000000
R12: 00000000
SP: 10080FE0
LR: FFFFFFF9 (exception from main thread)
PC: FFFFFFFE
xPSR: 01000003
MSP: 10080FE0
PSP: 10081000
CFBP: 00000001
Stacked Exception information
10080FFC: xPSR: 01000000
10080FF8: VECTPC: 10000034
10080FF4: LR: 10000035
10080FF0: R12: 00000000
10080FEC: R3: 00000000
10080FE8: R2: 00000000
10080FE4: R1: 00000000
10080FE0: R0: 10089000
Exception registers
E000ED04: ICSR: 00000803 (VECTPEND=0(none), RETTOBASE, VECTACTIVE=3(hard fault))
E000ED28: MMFSR: 00
E000ED29: BFSR: 00
E000ED2A: UFSR: 0000
E000ED2C: HFSR: 00000002 (VECTBL)
E000ED30: DFSR: 00000000
E000ED3C: AFSR: 00000000
E000ED24: SHCSR: 00000000
E000ED34: MMAR: E000EDF8
E000ED38: BFAR: E000EDF8
VECTPC instructions near 10000034
10000030: 0000
10000032: 0000
10000034: 0004
10000036: B672
10000038: F000
1000003A: F854
Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash.
(100) Writing Flash ended with an error.
Target error from Commit Flash write: Ef(34): Timed-out initializing flash.
(crt_emu_cm_redlink) terminating on communication loss: Pipe has been closed by GDB.