lpcware

Code Red Probe+ problem under Linux

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Steven_Buytaert on Mon Oct 25 04:35:21 MST 2010
Concerns Version: LPCXPresso 3.7.4_Beta [Build 97] under Linux [U]running as a VMWare Workstation guest OS.[/U] Linux version is Debian Lenny (5.0).
Problem: debugger (Red Code Probe+) gets disconnected during debugging session.

Hi,

I have included what I think is relevant log and trace information, collected from various sources, [U]below[/U]. Please see below for detailed logs. If not correct or if more info is needed, let me know and I'll post the required info).

I would be grateful if someone can provide some more insight into this problem.

Kind regards,

Steven

During debugging, after some time (a minute to some seconds), my target gets disconnected. Yielding the following error in the IDE console output:

16: Target error from status-poll: Ee(02). Not connected to emulator.

When I unplug and re-plug the Code Red Probe+, I get the following output from the "[B]crt_emu_lpc11_13_nxp -info-target[/B]" command line invocation: (note output in italic and wrapped)

[I]Ni: LPCXpresso Debug Driver v2.0 (Oct 19 2010 11:31:49)
GetModuleFileName path == /usr/local/LPCXpresso/bin/crt_emu_lpc11_13_nxp
Nc: Looked for vendor directory XML file in /usr/local/LPCXpresso/bin/nxp_directory.xml

Nc: Found generic directory XML file in /usr/local/LPCXpresso/bin/crt_directory.xml

Nc: Emu(0): Conn&Reset. DpID: 2BA01477. Info: FTTGMVVP A
Nc: SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Nc: Packet delay: 0  Poll delay: 0.
Ed:03: Failed on chip setup: Em(12). System rejected access at location 0x40048000 - verify Population of memory and peripherals
[/I]
I can start the debugging session OK, but after some time it fails with the error mentioned above in the IDE: 16: Target error from status-poll: Ee(02). Not connected to emulator. When I re-issue the "[B]crt_emu_lpc11_13_nxp -info-target[/B]" command, I get:

[I]Ni: LPCXpresso Debug Driver v2.0 (Oct 19 2010 11:31:49)
GetModuleFileName path == /usr/local/LPCXpresso/bin/crt_emu_lpc11_13_nxp
Nc: Looked for vendor directory XML file in /usr/local/LPCXpresso/bin/nxp_directory.xml

Nc: Found generic directory XML file in /usr/local/LPCXpresso/bin/crt_directory.xml

Ed:02: Failed on connect: Ee(05). No matching emulator found - make sure power is on and not in use already.
Et:31: No connection to emulator device[/I]

The last messages from the workspace/.metadata/.log file are the following:

!ENTRY com.crt.debugmgr 4 2 2010-10-25 13:21:11.949
!MESSAGE Problems occurred when invoking code from plug-in: "com.crt.debugmgr".
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.AbstractStringBuilder.charAt(Unknown Source)
        at java.lang.StringBuilder.charAt(Unknown Source)
        at com.crt.debugmgr.mi.MICommandData.messageReceived(MICommandData.java:136)
        at com.crt.debugmgr.mi.ConsoleStreamer$ConsoleNotifier.run(ConsoleStreamer.java:94)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at com.crt.debugmgr.mi.ConsoleStreamer$ConsoleNotifier.notifyMessageReceived(ConsoleStreamer.java:82)
        at com.crt.debugmgr.mi.ConsoleStreamer.fireMessageReceived(ConsoleStreamer.java:269)
        at com.crt.debugmgr.mi.ConsoleStreamer.handleStream(ConsoleStreamer.java:339)
        at com.crt.debugmgr.mi.ConsoleStreamer.bufferReceived(ConsoleStreamer.java:238)
        at com.crt.debugmgr.server.StubServer$ServerNotifier.run(StubServer.java:89)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at com.crt.debugmgr.server.StubServer$ServerNotifier.notifyBufferReceived(StubServer.java:76)
        at com.crt.debugmgr.server.StubServer.firePacketReceived(StubServer.java:258)
        at com.crt.debugmgr.server.StubServer.dispatcher(StubServer.java:198)
        at com.crt.debugmgr.server.StubServer$1.run(StubServer.java:325)
        at java.lang.Thread.run(Unknown Source)

!ENTRY org.eclipse.debug.core 4 125 2010-10-25 13:21:11.950
!MESSAGE Error logged from Debug Core:
!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.AbstractStringBuilder.charAt(Unknown Source)
        at java.lang.StringBuilder.charAt(Unknown Source)
        at com.crt.debugmgr.mi.MICommandData.messageReceived(MICommandData.java:136)
        at com.crt.debugmgr.mi.ConsoleStreamer$ConsoleNotifier.run(ConsoleStreamer.java:94)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at com.crt.debugmgr.mi.ConsoleStreamer$ConsoleNotifier.notifyMessageReceived(ConsoleStreamer.java:82)
        at com.crt.debugmgr.mi.ConsoleStreamer.fireMessageReceived(ConsoleStreamer.java:269)
        at com.crt.debugmgr.mi.ConsoleStreamer.handleStream(ConsoleStreamer.java:339)
        at com.crt.debugmgr.mi.ConsoleStreamer.bufferReceived(ConsoleStreamer.java:238)
        at com.crt.debugmgr.server.StubServer$ServerNotifier.run(StubServer.java:89)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at com.crt.debugmgr.server.StubServer$ServerNotifier.notifyBufferReceived(StubServer.java:76)
        at com.crt.debugmgr.server.StubServer.firePacketReceived(StubServer.java:258)
        at com.crt.debugmgr.server.StubServer.dispatcher(StubServer.java:198)
        at com.crt.debugmgr.server.StubServer$1.run(StubServer.java:325)
        at java.lang.Thread.run(Unknown Source)

!ENTRY com.crt.debugmgr 4 0 2010-10-25 13:21:23.728
!MESSAGE 16: Target error from status-poll
!SUBENTRY 1 com.crt.debugmgr 4 0 2010-10-25 13:21:23.728
!MESSAGE 16: Target error from status-poll
!SUBENTRY 1 com.crt.debugmgr 4 0 2010-10-25 13:21:23.728
!MESSAGE Not connected to emulator.

Outcomes