Debug cannot launch

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debug cannot launch

1,852 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cagdastopcu on Fri Dec 14 02:04:28 MST 2012
Hello, this is my first post and be gentle please. I installed LPCXPRESSO V5 and I am trying to use it with my lpcxpresso lpc1114/302 board (free one) on Ubuntu 12.04. First of all, I cannot find anything in this forum. The Search doesn't work properly and there isn't any category. In my opinion, I will lost my own post

I can run only one time the blinky example (pressed build, debug conf > new debug under the mcu part, and debug and pressed green continue button) but after that I cannot re-debug it. It stopped at 94%. I waited and pressed stop debug but it didn't work. I closed eclipse/lpcxpresso. I tried again and again and I got this message

LPCXpresso Debug Driver v5.0 (Nov 22 2012 08:59:41 build 1083)
Looked for chip XML file in /usr/local/lpcxpresso_5.0.12_1038/lpcxpresso/bin/LPC1114/302.xml
Looked for vendor directory XML file in /usr/local/lpcxpresso_5.0.12_1038/lpcxpresso/bin/nxp_directory.xml
Found generic directory XML file in /usr/local/lpcxpresso_5.0.12_1038/lpcxpresso/bin/crt_directory.xml
Emu(0): Conn&Reset. DpID:  BB11477. Info: LPCLINK_1_1
SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Packet delay: 0  Poll delay: 0.
Launching blinky Debug(1) %97
Launching configuring GDB

Actually I used lpcexpresso 1 year ago and It used to work. I don't understand what is the problem.
0 Kudos
Reply
8 Replies

1,778 Views
lpcware
NXP Employee
NXP Employee
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
0 Kudos
Reply

1,778 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nfogh on Tue Feb 19 15:32:54 MST 2013
I managed to find the error. In fact, it was a hardware problem. I was drawing too much power from the IO pins. The spice model I used for the design must have been wrong. It is working fine now.
0 Kudos
Reply

1,778 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nfogh on Tue Feb 19 09:59:15 MST 2013
I have tried following the instructions used by cagdastopcu, and I still have the problem. I also deleted all the launch configurations and had lpcxpresso recreate them. I have also tried rebooting my machine.

Interestingly enough, I did manage to make it work for a bit after having left it for a while. But after a short time, it failed again. I have always had some problems with connections to the boards, but nothing that could not be fixed by disconnecting and reconnecting the board.

Is there any way to find out what lpcxpresso is doing at the time it is stalling. I cannot cancel the operation, but if I disconnect the board, it reports an error and stops.
0 Kudos
Reply

1,778 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Sat Feb 16 03:50:29 MST 2013
Try deleting the launch configuration. And the start debugging again
0 Kudos
Reply

1,778 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nfogh on Fri Feb 15 05:32:03 MST 2013
I am having the same problem with Ubuntu 12.10, newest lpcxpresso v5.1.0. I also tried 5.0.12.

I have not had this problem before, and I have been using these tools for a while now.

I have tried using the commandline tools, and they seem to be working correctly. I can flash and connect using gdb, set breakpoints and stop the program.

I can flash the device from within lpcxpresso, but whenever I try to debug, it is stuck configuring GDB.

It shouldn't be a hardware problem, as I can make it work using the command line.

Does anyone experience the same?
0 Kudos
Reply

1,778 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cagdastopcu on Fri Dec 14 06:14:55 MST 2012
It was a driver/library problem. I get over it with this code:

sudo ln -s /usr/local/lpcxpresso_5.0.12_1038/lpcxpresso/bin/libusb-1.0.so.0 /lib/libusb-1.0.so.0
0 Kudos
Reply

1,778 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cagdastopcu on Fri Dec 14 05:09:08 MST 2012
@ TheFallGuy,

Thank you for answering. I found a way for debugging/programming, but I have to do every time:


[LIST=1]
[*]Close IDE (LPCXpresso).
[*]Unplug USB.
[*]Run IDE.
[*]Clean your project.
[*]Build your project.
[*]Connect your device.
[*]Right click your project and select Debug As >> Debug Confs
[*]Create a new launch conf. and debug.
[/LIST]
It works for Ubuntu 12.04.
0 Kudos
Reply

1,777 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Fri Dec 14 03:31:55 MST 2012
Check your USB connection - try a different USB cable and also try other USB ports.
0 Kudos
Reply