Content originally posted in LPCWare by robert.palmer on Wed May 08 14:41:24 MST 2013
I'm having a similar problem, but it goes back to at least v5.0.12. I've tried 5.1.2 and now 5.2.4, all have the same issue, I am on a Mac, using v5.2.4, connected to a custom lpc1756 board.
When I select debug, it correctly writes my app to the flash and the code runs correctly (I have a hardware UART that I use and I can trace a lot with it). However, the debugger never connects and the indicator shows:
Launching MyApp: (94%)
The Debug window DOES appear and the top level heading appears "My App Debug [C/C++ (Code Red) MCU Application]" but the threads never appear. If I terminate the debug session, the RedProbe will be busy, i.e. another attempt to debug will fail asking what device do I want to use and showing a window with no debuggers available. If I unplug the USB cable and replug it on my RedProbe, so I'm back to a working state, I can then run my AttachOnly debug configuration and it works perfectly - attaches and lets me debug my app.
Here's the trace from the download and debug attempt:
Found generic directory XML file in /Applications/lpcxpresso_5.2.4_2122/lpcxpresso/bin/crt_directory.xml
Emu(1): Conn&Reset. DpID: 2BA01477. Info: FTUT6ATWA
SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Packet delay: 0 Poll delay: 0.
Loaded LPC175x_6x_256.cfx: LPC175x_6x (256K) Apr 22 2013 12:14:30 On-chip Flash Memory
NXP: LPC1756 Part ID: 0x00000000
Connected: was_reset=false. was_stopped=false
v Registered license, download limit of 128K
Writing 114992 bytes to 0000 in Flash (assumed clock: 4.0MHz)
Erased/Wrote page 0-7 with 32768 bytes in 3107msec
Erased/Wrote page 8-15 with 32768 bytes in 2955msec
Erased/Wrote page 16-16 with 32768 bytes in 1441msec
Erased/Wrote page 17-17 with 16688 bytes in 849msec
Flash write Done