lpcware

Debian Wheezy(AMD64): LPCXpresso/LPC-Link2/LPC4088 Dev. Kit - "FreeRTOS Blinky"  failure.

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by paul.rcom-software.com on Sat May 17 11:51:34 MST 2014
Dear Staff:

I am currently unable to run the "FreeRtos Blinkly" example on the
4088 dev board and the problem appears to be a LPC-Link2 JTAG hardware
connectivity. (i.e. Both the board and JTAG hardware are connected to
my PC via USB ports.) The diagnostic clues are that Redlink probes
cannot be found and a mysterious "SAX ParseException" occurs.

What I consider the salient details follow this note in sections
organized as follows:

BASIC BEHAVIOR: Basic LPCXpresso and Redlink Server behavior and
failure symptoms.

ENVIRONMENT: Hardware/Software/OS environment.

BLINKY FAILURE DETAILS: Diagnostics displayed during a failure.

Best Regards,

Paul Romero

BASIC BEHAVIOR
---------------

* The Redlink Server works when started manually and a telnet
connection to it succeeds on TCP port 3025.

NOTES: GLIBC_2.14 compatibility has been established per LCP instructions
and the server is started with the following shell script:

LPCXPRESSO_ROOT_DIR=/usr/local/lpcxpresso_7.1.1_125
LPCXPRESSO_BIN_DIR="${LPCXPRESSO_ROOT_DIR}/lpcxpresso/bin"
GLIBC_DIR="${LPCXPRESSO_ROOT_DIR}/debian/glibc_import/lib/i386-linux-gnu"
export LD_LIBRARY_PATH="${LPCXPRESSO_BIN_DIR}:${GLIBC_DIR}:${LD_LIBRARY_PATH}"
exec "${LPCXPRESSO_BIN_DIR}"/redlinkserv.exe

* lsusb identifies the LPC-Link2 as follows:

Bus 002 Device 004: ID 1fc9:000c NXP Semiconductors

* Attempting to boot the Redlink server an a stand-alone
  basis--from the IDE GUI, fails as follows:

Timeout waiting for Redlink Server to initialize.

The following diagnostics are displayed on the console
if no is selected in response to the VM query and the
operation is cancelled via the GUI button.

[Started server]
[Connected on port 3025]

* Attempting to connect with the LPC-Link2 by starting the
  "FreeRtos Blinky" example fails as follows:

The following diagnostics are displayed on the console
if no is selected in response to the VM query and the
operation is cancelled via the GUI button--after SAX
ParseException diagnostics are displayed:

[Connected on port 3025]
redlink>
redlink>ProbeList
No probes found
redlink>ProbeList
No probes found
redlink>
redlink>ProbeStatus
redlink>exit
[Closed]

NOTES: See the BLINKY FAILURE DETAILS below for SAX ParseFailure diagnostics.
"Initialized Redlink Server with LPC432x_Redlink_V4_26.bin" is displayed during
the process. Also, after cancellation the following diagnostics are displayed:

Connect to emulator: NXP LCP40xx (SWD)

x No compatible emulators available
They may be disconnected, not powered, already in use or not compatible with this target.

ENVIRONMENT
-----------

Hardware
........
Board: LPC4088-32 Developers Kit. (OM13029,598)
JTAG: LPC-Link2  (OM13504)

Software
........
LPCXpresso(Free Edition Registered.): Version 7.1.1

OS
...
Debian Wheezy 7.5 Linux (AMD64)
Notes: Multi-architecture 32 bit compatibility
enabled.

BLINKY FAILURE DETAILS
----------------------
SAX ParseException
...................
Premature end of file.:null (Line:1, Col:1)
file=file:///home/paulr/./
line:1 col:1

Premature end of file.:null (Line:1, Col:1)
        at com.crt.utils.xmlparser.XMLParser.parse(Unknown Source)
        at com.crt.utils.xmlparser.XMLParser.processInput(Unknown Source)
        at com.crt.utils.general.ExecCommand.execCommand(Unknown Source)
        at com.crt.utils.general.ExecCommand.exec(Unknown Source)
        at com.crt.utils.xmlparser.XMLParser.parseXML(Unknown Source)
        at com.crt.debugcommon.emulator.EmulatorsDB.createFromCommand(Unknown Source)
        at com.crt.debugcommon.emulator.EmulatorsDB.oldStyleDiscovery(Unknown Source)
        at com.crt.debugcommon.emulator.EmulatorsDB.getEmus(Unknown Source)
        at com.crt.debugcommon.emulator.EmulatorsDB.getEmulatorInfo(Unknown Source)
        at com.crt.debugcommon.emulator.EmulatorsDB.getAvailableEmulators(Unknown Source)

        at com.crt.debugcommon.emulator.TargetDiscovery.probeDiscovery(Unknown Source)
        at com.crt.debugcommon.emulator.TargetDiscovery.probeDiscovery(Unknown Source)
        at com.crt.debugcommon.utils.LaunchScriptUtils.getEmulatorInfo(Unknown Source)
        at com.crt.debugcommon.utils.LaunchScriptUtils.init(Unknown Source)
        at com.crt.debugcommon.utils.LaunchScriptUtils.<init>(Unknown Source)
        at com.crt.debugcommon.utils.LaunchScriptUtils.<init>(Unknown Source)
        at com.crt.dsfdebug.dsf.services.TargetDiscoveryService.getTargetDiscovery(Unknown Source)
        at com.crt.dsfdebug.dsf.override.CRTFinalLaunchSequence$TargetDiscoveryJob.runInUIThread(Unknown Source)
        at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3717)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3366)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
        at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1450)

Outcomes