Sicot Christophe

LPC1224/121 : System rejected access at location 0xFFFFFFFF

Discussion created by Sicot Christophe on Jun 15, 2017
Latest reply on Jun 21, 2017 by LPCX support

I use my own board with LPC1224/121. I have been using severall copy of this board since 2013 successfully.
debug connection : SWDIO on PIO0_25, SWCLK on PIO0_26 -> default SWD at reset.
reset with pull up on port 0_13
For the first time I can't use it with my LPCXpresso board (LPC-link).
error message while trying to enter in debug mode :
15: Target error from Comment Flash write
System rejected access at location 0xFFFFFFFF - verify Population of memory and peripherals

when I try to program *.axf file through SWD interface :

__________________________________________________________________________

Nc: Probe Firmware: LPC-Link Probe v1.3 (NXP - LPC-Link)
Nc: Serial Number: WIN64HS12
Nc: VID:PID: 1FC9:0009
Nc: USB Path:
Pc: ( 30) Emulator Connected
Xc:
Pc: ( 40) Debug Halt
Pc: ( 50) CPU ID
Nc: Emu(0): Connected&Reset. DpID: 0BB11477. CpuID: 410CC200. Info: <None>
Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Nc: inspected v.2 On-chip Flash Memory /usr/local/lpcxpresso_8.1.4_606/lpcxpresso/bin/Flash/LPC11_12_13_48K_4K.cfx
Nc: image 'LPC11_12_13 (48K Flash, min 4K RAM) Feb 16 2016 09:19:04'
Nc: NXP: LPC1224/121 Part ID: 0x00000000
Pc: ( 65) Chip Setup Complete
Nt: Connected: was_reset=true. was_stopped=true
Cr:v LPCXpresso Free License - Download limit is 256K
Pc: ( 70) License Check Complete
Nt: Loading 'tstUlpc12.axf' ELF 0x00000000 len 0x3B4
Nc: Flash Driver V.2 startup failed - rc Em(12). System rejected access at location 0xFFFFFFFF - verify Population of memory and peripherals
Pb: (100) Writing Flash ended with an error.
Ed:05: File 'tstUlpc12.axf' load failure: Em(12). System rejected access at location 0xFFFFFFFF - verify Population of memory and peripherals
Pc: (100) Target Connection Failed

____________________________________________________________________

if I try again without removing and reconnecting board :

____________________________________________________________________
Wc: LPC12XX Connect Script
Wc: No probes found
Wc: DpID = 0BB11477
Wc: Wire Ack Fault - target connected?
Wc: Wire Ack Fault - target connected?
Wc: Wire Ack Fault - target connected?
Wc: Wire Ack Fault - target connected?
Wc: Wire Ack Fault - target connected?
Wc: ============= END SCRIPT =============================
Xe:
Nc: Probe Firmware: LPC-Link Probe v1.3 (NXP - LPC-Link)
Nc: Serial Number: WIN64HS12
Nc: VID:PID: 1FC9:0009
Nc: USB Path:
Nc: non-Cortex debug bus (DP 0xFFFFFFFF MemAP[0] 0x04770001) SWD connection failed - 'Em(01). Cannot find selected MEM-AP (chec
Nc: connection failed - Ep(01). Target marked as not debuggable. - retrying
Nc: non-Cortex debug bus (DP 0xFFFFFFFF MemAP[0] 0x04770001) SWD connection failed - 'Em(01). Cannot find selected MEM-AP (chec
Ed:02: Failed on connect: Ep(01). Target marked as not debuggable.
Et: Emu(0): Connected&Reset. Was: NotConnected. DpID: 00000000. CpuID: 00000000. Info: <None>
Nc: Error 0: OK
Nc: Last sticky error: 0x0 AIndex: 0
Nc: No debug bus (MemAp) selected
Nc: DAP Speed test unexecuted or failed
Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Pc: (100) Target Connection Failed

____________________________________________________________________________________

 

So, I try to change the LPCXpresso board : same error
I try to change the LPC1224 target board : same error
I try to put an external supply on the target board : same error.
I try another USB cable (shorter) : same error
I try to change cable beetween lpcXpresso 8 pin connector 2,54mm and my board : same error
I add 47k pull up on SWDIO, and pull down on SWCLK : same error
I try another target board with another program with LPC1115 : Debug OK
I try another target board with just 5V regu and the LPC1224 : same error
To be sure I haven't active watchdog on the board, I use flashMagic through UART to erase all flash and I put a very simple code without the watchdog (ISP mode). Verification OK, I come back to debug mode with LPC-link : same errors.
I use a USB switch with 3A 5A external supply : same errors
I try to create a new project with a simple loop, and launch the debug : same errors

tools version :
LPC-Link Probe v1.3
LPCXpresso v8.1.4 [Build 606][2016-03-14]

what happening ?, an why adress location 0xFFFFFFFF ?

thanks

Outcomes