LPCXpresso - redlink server not accept commands

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

LPCXpresso - redlink server not accept commands

1,973 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by EdizonTN on Tue Feb 03 07:45:39 MST 2015
Hello,

I worked with LPCXpresso fine till today.
After switch ON computer, LPCXpresso cannot start debug session !!


Facts:
- OS: Windows XP 32bit
- LPCXpresso version 7.6.0 [Build 321] [2015-01-26]
- debug probe: KEIL Ulink2
- Target device: LPC1549 on my board
- test connection included target , debug probe, and  KEIL MDK (eval. version) - works fine
- same connection with LPCXpresso - not working. Cannot start debug. Error message:

Write failed: ProbeList
  Write failed: ProbeList

Write failed: ProbeList
  at com.crt.debugcommon.emulator.client.RedlinkServerClient.writeln(RedlinkServerClient.java:1152)
  at com.crt.debugcommon.emulator.client.RedlinkServerClient.send(RedlinkServerClient.java:921)
  at com.crt.debugcommon.emulator.client.RedlinkServerClient.sendReceive(RedlinkServerClient.java:966)
  at com.crt.debugcommon.emulator.client.RedlinkServerClient.sendReceive(RedlinkServerClient.java:948)
  at com.crt.debugcommon.emulator.client.RedlinkServerClient.sendReceive(RedlinkServerClient.java:937)
  at com.crt.debugcommon.emulator.client.RedlinkServerClient.probeList(RedlinkServerClient.java:853)
  at com.crt.debugcommon.emulator.common.redlinkserver.RedlinkServerEmuHandler.discoverEmulators(RedlinkServerEmuHandler.java:208)
  at com.crt.debugcommon.emulator.win.AbstractWinServerProbe.discoverEmulators(AbstractWinServerProbe.java:77)
  at com.crt.debugcommon.emulator.EmulatorsDB.getEmus(EmulatorsDB.java:335)
  at com.crt.debugcommon.emulator.EmulatorsDB.getEmulatorInfo(EmulatorsDB.java:290)
  at com.crt.debugcommon.emulator.EmulatorsDB.getAvailableEmulators(EmulatorsDB.java:213)
  at com.crt.debugcommon.emulator.TargetDiscovery.probeDiscovery(TargetDiscovery.java:563)
  at com.crt.debugcommon.emulator.TargetDiscovery.probeDiscovery(TargetDiscovery.java:527)
  at com.crt.debugcommon.utils.LaunchScriptUtils.getEmulatorInfo(LaunchScriptUtils.java:306)
  at com.crt.debugcommon.utils.LaunchScriptUtils.init(LaunchScriptUtils.java:523)
  at com.crt.debugcommon.utils.LaunchScriptUtils.<init>(LaunchScriptUtils.java:214)
  at com.crt.debugcommon.utils.LaunchScriptUtils.<init>(LaunchScriptUtils.java:198)
  at com.crt.dsfdebug.dsf.services.TargetDiscoveryService.getTargetDiscovery(TargetDiscoveryService.java:146)
  at com.crt.dsfdebug.dsf.override.CRTFinalLaunchSequence$TargetDiscoveryJob.runInUIThread(CRTFinalLaunchSequence.java:102)
  at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:97)
  at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
  at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
  at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147)
  at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764)
  at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  at org.eclipse.equinox.launcher.Main.run(Main.java:1465)


and console window:
 
[Connected on port 3025]
  redlink>
  [Closed]
  [Connected on port 3025]
  redlink>
  [Closed]
  [Connected on port 3025]
  redlink>
  [Closed]
  [Connected on port 3025]
  redlink>ProbeList
  [Closed]
  [Connected on port 3025]
  redlink>


Where is the problem???
As I set, yesterday worked fine, next I switch off computer -> sleep -> today -> switch ON PC and debug not working....

Please, help me.

Thanks

0 Kudos
12 Replies

1,111 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Feb 17 04:36:00 MST 2015

Quote:
It's possible install 3-rd part plugin for LPCXpresso ???


Yes. You can install most Eclipse (Luna) plugins into LPCXpresso.
0 Kudos

1,111 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by EdizonTN on Tue Feb 17 02:28:41 MST 2015
Hello,

I have a fresh information.

I do a reproduce the problem (Win XP again) :
- installed LPCXpresso newest version (7.6.2 build 326): working fine
- after install a plugin "Eclipse GitHub integration with task focused interface" (Eclipse GitHub integration with task focused interface): stop working. Cannot start redlink server. After start redlinkserver.exe manually, works OK.

It's possible install 3-rd part plugin for LPCXpresso ???

thank you.

Ed.
0 Kudos

1,111 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Feb 05 10:28:27 MST 2015
Out of curiosity, have you replaced the Windows XP telnet client with another? Outwardly, it appears the LPCXpresso IDE has a problem opening a telnet session to the Redlink Server. It's unclear if the Redlink Server is simply not starting, or there is a problem with the telnet client.

Because Windows XP is no longer supported, we can be of no further assistance. It seems you've found a workaround of sorts, and that is to start the server manually.

Regards,
LPCXpresso Support
0 Kudos

1,111 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by EdizonTN on Thu Feb 05 05:54:34 MST 2015
Hello support,

I have a fresh information.

- redlink server does not start from LPCXpresso IDE.

If I start manually in command line (redlinkserv.exe), LPCXpresso found Keil probe.

.. but If I close debug session, redlinkserver will stop responding. Need's start manually again.
0 Kudos

1,111 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by EdizonTN on Thu Feb 05 03:31:02 MST 2015
OK,

1. Double check: No zombie process arm-none-eabi-gdb.exe, crt_emu_cm_redlink.exe, or redlinkserv.exe in task list.
2. reconnected Keil ULINK2 USB cable (another USB port for sure)
3. start LPCXpresso
4. Zombie check again: No zombie process arm-none-eabi-gdb.exe, crt_emu_cm_redlink.exe, or redlinkserv.exe in task list.
5. Open RedLink server console:
[Connected on port 3025]
redlink>
and clear window
6. Start debug (Ends with error)
7. Contetnt of RedLinkServer Window:
 
- yes, it's empty
... 

p.s., in attachment you can find logfile from workspace.


p.s.2. If I try write to RedLink Server console window, server is reconnect and no answer:
[Connected on port 3025]
redlink>
probelist

[Connected on port 3025]
0 Kudos

1,111 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Feb 04 09:24:00 MST 2015
Let's back up a bit.

1. Make certain you have no zombie arm-none-eabi-gdb.exe, crt_emu_cm_redlink.exe, or redlinkserv.exe processes in your task list.
2. Cycle power to your Keil ULINK (unplug/plug in), and connected board.
3. Open the RedlinkServer console window, and select Clear from the right mouse button menu.
4. Attempt to start a new debug session. Presuming it fails, Select All in the RedlinkServer console from the right mouse button menu, and paste the results into your reply.

Regards,
LPCXpresso Support
0 Kudos

1,111 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by EdizonTN on Wed Feb 04 02:40:39 MST 2015
Yes, I hasn't debbuging problem till yesterday too...

OK, test for listusb:
Microsoft Windows XP [Verzia 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\nxp\LPCXpresso_7.6.0_321\lpcxpresso\bin\Scripts>listusb
VID: 0458 PID: 003A (HID-compliant mouse)
VID: 0458 PID: 003A (USB Human Interface Device)
VID: 1AB1 PID: 0E11 (USB Test and Measurement Device (IVI))
VID: C251 PID: 2722 (HID-compliant device)
VID: C251 PID: 2722 (USB Human Interface Device)

C:\nxp\LPCXpresso_7.6.0_321\lpcxpresso\bin\Scripts>



Quote:
(press the Red 'terminate' button).


- No, I cannot because I cannot start any debug session ....


Quote:
to kill any tasks called


- I was check this . Not found any zombie tasks in task list....



Quote:
After doing this, unplug and replug your board and probe back into your PC. Can you then start a debug session?


- Yes, I tried approx milion times (OK, tens times) but without success. Same error, same results.

About USB:
I don't use USB HUB. My USB ports looks good. I use another USB devices without any problems.

On same PC I also tried Keil uVision with same debugger probe and cables - without problem.

I tried uninstall LPCXpresso and install again - same result. Cannot find debug probe.



Problem looks as redlink server and his public connections I mean.
Is any way to test exactly this? Or start with logging?
0 Kudos

1,111 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Feb 04 02:05:34 MST 2015
I've just tried debugging an LPC1549 here via a ULINK2 and see no problems (though this was on Win7).

If you run the "listusb" command in the LPCXpresso {install_dir}\lpcxpresso\bin\Scripts directory from a command prompt after plugging in the ULINK2 it should show up as a pair of devices. Does it?

VID: C251 PID: 2722 (HID-compliant device)
VID: C251 PID: 2722 (USB Input Device)


I would also try the following...

Ensure you have shut down any previous debug sessions (press the Red 'terminate' button). Even after doing this it is possible that you might have instances of the debug drivers still running in the background. Use the task manager or equivalent to kill any tasks called:
- redlinkserv
- arm-none-eabi_gdb*
- crt_emu_*

After doing this, unplug and replug your board and probe back into your PC. Can you then start a debug session?

There are also the standard USB related things...

- Try a different USB cable!
- Try a different USB port. If your host has USB3 and USB2, then try a USB2 port

Note - there are know issues with motherboard USB3 firmware, ensure your host is using the latest driver from the manufacturer. This is not referencing the host OS driver but the motherboard firmware of the USB port

- If using a USB hub, try a direct connection to the host computer. And if using a USB port directly, trying using a powered USB hub.

Regards,
LPCXpresso Support

0 Kudos

1,111 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by EdizonTN on Wed Feb 04 00:58:00 MST 2015
Hi,

thank you for your reply.

I switch ULINK to CMSIS-DAP:

Microsoft Windows XP [Verzia 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Keil_v5\ARM\ULINK\Utilities>UL2_Configure.exe V0471PGE B1
ULINK2 Configure Utility V1.0

Disconnecting ULINK ..........
Connecting ULINK Loader ........................................

Updating configuration ...
Configuration updated!

Disconnecting ULINK Loader ..........

C:\Keil_v5\ARM\ULINK\Utilities>


Next, I try connect redlinkserver to debugger (as your example):
C:\nxp\LPCXpresso_7.6.0_321\lpcxpresso\bin>redlinkserv.exe -commandline
redlink>probelist
Index = 1
Manufacturer = Keil Software
Description = Keil ULINK2 CMSIS-DAP
VID = C251, PID=2722
Path = \\?\hid#vid_c251&pid_2722#6&9840905&0&0000#{4d1e55b2-f16f-11cf-88cb-00111
1000030}

redlink>probeopenbyindex 1
Handle = 1
redlink>wireswdconnect 1
DpID = 2BA01477
redlink>cminitapdp 1 0
AP_ID = 0x24770011
redlink>cmhalt 1 0
redlink>cmregs 1 0
R0  : 00000000
R1  : 00B71B00
R2  : 00000001
R3  : 00000000
R4  : 00000000
R5  : 00000000
R6  : 00000009
R7  : 00000000
R8  : 00000000
R9  : 02000168
R10 : 00000000
R11 : 00000000
R12 : 00000000
SP  : 02001000
LR  : 02000001
PC  : 02000000
PSR : 41000000
MSP : 02001000
PSP : 00000000

CFBP: 00000000

redlink>probestatus 1
Index = 1
Manufacturer = Keil Software
Description = Keil ULINK2 CMSIS-DAP
VID = C251, PID=2722
Path = \\?\hid#vid_c251&pid_2722#6&9840905&0&0000#{4d1e55b2-f16f-11cf-88cb-00111
1000030}
IsOpen = TRUE
WireInitialized = TRUE
WireProtocol = SWD
CoresConfigured = FALSE
PacketSize = 64
Probe Reference Count = 0
HasSWV = FALSE
HasETM = FALSE
HasJTAG = FALSE
HasSWD = TRUE
Probe Type = CMSISDAP
redlink>probeclosebyindex 1
redlink>


But, in LPCXpresso IDE you still cannot connect to debugger:
"No compatible emulators available.
They may be disconnected, not powered, already in use or not compatible with this target"


It looks as TCP connection to redlink server problem (Tokenizer error).

Any ideas?

btw: about XP: yes, I know about WinXP's end of support. My IT guru prepare a new PC for me....
0 Kudos

1,111 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Feb 03 09:56:31 MST 2015

By the way, NXP no longer supports Windows XP once Microsoft discontinued support. It may work for some time, but we no longer test the product on that operating system and can't guarantee it's operation.

Note the example above does not use the Windows telnet implementation. I think you've already noticed its' operation leaves something to be desired.

LPCXpresso Support
0 Kudos

1,111 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Feb 03 09:51:23 MST 2015
The Keil ULINK2 needs to be configured with CMSIS-DAP in order to use it with LPCXpresso. You can configure the ULINK2 through Keil uVision. You didn't mention whether this was done, or if you happen to be changing back and forth between CMSIS-DAP and ULINK2 Pro Cortex Debugger as is the case with Keil uVision 4.70, or earlier.

See http://www.keil.com/support/man/docs/ulink2/ulink2_boot_mode.htm

Here's a short example of a Redlink Server debug connection to an LPC1549 Xpresso v2 board using a Keil ULINK2 emulator with CMSIS-DAP. I ran the server from a command shell, but you can do the same thing through the Redlink Server console in the LPCXpresso IDE:


C:\nxp\LPCXpresso_7.6.2_326\lpcxpresso\bin>redlinkserv.exe -commandline
redlink>probelist
Index = 1
Manufacturer = Keil Software
Description = Keil ULINK2 CMSIS-DAP
VID = C251, PID=2722
Path = \\?\hid#vid_c251&pid_2722#7&4f012a4&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}

redlink>probeopenbyindex 1
Handle = 1
redlink>wireswdconnect 1
DpID = 2BA01477
redlink>cminitapdp 1 0
AP_ID = 0x24770011
redlink>cmhalt 1 0
redlink>cmregs 1 0
R0  : 00000000
R1  : E000ED00
R2  : 00000007
R3  : 00000000
R4  : 210730FF
R5  : 43218765
R6  : 12345678
R7  : 02003FD8
R8  : 00000000
R9  : 00000000
R10 : 00000000
R11 : 00000000
R12 : 00000000
SP  : 02003FD8
LR  : 00000305
PC  : 00000390
PSR : 01000000
MSP : 02003FD8
PSP : 00000000

CFBP: 00000000

redlink>probestatus 1
Index = 1
Manufacturer = Keil Software
Description = Keil ULINK2 CMSIS-DAP
VID = C251, PID=2722
Path = \\?\hid#vid_c251&pid_2722#7&4f012a4&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
IsOpen = TRUE
WireInitialized = TRUE
WireProtocol = SWD
CoresConfigured = FALSE
PacketSize = 64
Probe Reference Count = 0
HasSWV = FALSE
HasETM = FALSE
HasJTAG = FALSE
HasSWD = TRUE
Probe Type = CMSISDAP
redlink>probeclosebyindex 1
redlink>
0 Kudos

1,111 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by EdizonTN on Tue Feb 03 09:16:35 MST 2015
Additional tests:
[list=1]
  [*]open command line
  [*]run redlinkserv.exe
  [*]open telnet to 127.0.0.1 3205
  [*]
redlink>
(Connection OK)
  [*]I try write: "probelist" to telnet window:
  [*]result:
  [*]
redlink>pTokenizer error
                        Error: Unexpected token 31
                                                  redlink>

[/list]

Tokenizer???
0 Kudos