While trying to debug process freezes with this message in bottom bar: Launching MyProject 97% but sometimes reports 94%

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by keithco on Sun Oct 20 15:39:22 MST 2013
While trying to start up a new custom board using the LPC1227F/301 I can't get past the Launching MyProject 94% and sometimes 97% message at the bottom bar. Seems to freeze at this point.  I have verified that my SWD port is per the NXP design guidelines and my connector is within 1/2 inch from the processor. I have ruled out the ribbon cable (tried two different cables and only 6" long) between the LPC-LINK board  and my board including the USB cable (tried two different cables) between the PC and the LPC-LINK. When connected to the Xpresso target board, debugging works fine. If I switch to release it seems to flash the device but my code doesn't run..  Of course I have checked power and is per specification.

Any help will be greatly appreciated due to that I'm up against a crazy deadline... What a show stopper!

Here what the debug console reports:

LPCXpresso Debug Driver v6.0 (Sep 10 2013 00:02:28 - crt_emu_lpc11_13_nxp build 1208)
Looked for chip XML file in C:/nxp/LPCXpresso_6.0.4_159/lpcxpresso/bin/LPC1227/301.xml
Looked for vendor directory XML file in C:/nxp/LPCXpresso_6.0.4_159/lpcxpresso/bin/nxp_directory.xml
Found generic directory XML file in C:/nxp/LPCXpresso_6.0.4_159/lpcxpresso/bin/crt_directory.xml
Emu(0): Conn&Reset. DpID:  BB11477. Info: HID64HS12
SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Packet delay: 0  Poll delay: 0.
Loaded LPC11_12_13_128K_8K.cfx: LPC11_12_13 (128K Flash, min 8K RAM) Nov 21 2012 14:49:36  On-chip Flash Memory
NXP: LPC1227/301  Part ID: 0x00000000
( 65) Chip Setup Complete
Connected: was_reset=false. was_stopped=false
v LPCXpresso Free License - Download limit is 256K
Writing 7940 bytes to 0000 in Flash (assumed clock: 12.0MHz)
Erased/Wrote page  0-1 with 7940 bytes in 1171msec
Flash write Done