LPCexpresso / LPC Link hangs on launching application

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

LPCexpresso / LPC Link hangs on launching application

1,334 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Andreas Guth on Mon Mar 16 09:35:27 MST 2015
Hello,

I have
- a LPCXpresso LPC1115 REV A LPC Link (with all strip connectors properly cut, so that I can use the LPC-Link as JTAG interface)
- an OLIMEX ARM-JTAG 20-10 adapter
- an OLIMEX LPC-P212x Board with LPC 2129
- a 7.5 Volts power supply for the LPC-P212x Board
- a PC with LPCXpresso 7.6.3_326 installed
- a small C project called "StatusAnzeige"

I can build the software, but if I try to debug it, LPCXpresso says "Launching StatusAnzeige: (xx%)" in the status bar and then it hangs, whereupon xx varies somewhere between 50% and 78%. "It hangs" means LPCXpresso shows the hourglass cursor for minutes and I have to use the taskmanager to kill the LPCXpresso application.

If I select Project > Properties > Run/Debug Settings > Edit > Debugger > Miscellaneous and select "LPC-Link (WinUSB) or RDB-Link" and then click on "Edit JTAG configuration", I get the same behaviour.

I already tried another USB cable, other USB ports (including non-USBHub ports), another OLIMEX LPC-P212x board and checked that all voltages on the OLIMEX board are ok.

When I disconnect the LPC Link's USB connector, reconnect it, start a console, go to the <LPCXpresso_install_dir>\bin\scripts and run "bootlpcxpresso winusb" (as recommended on http://support.code-red-tech.com/CodeRedWiki/LPCLinkDiagnostics), it says "Booting LPC-Link with LPCXpressoWIN.enc" and I get the USB device connection sound. If I go to LPCXpresso_install_dir>\bin then and enter "crt_emu_a7_nxp -info-target -pLPC2129 -wire=winusb -4", I get the result

Chip=LPC2129, from NXP (formerly Philips), in family LPC21xx, version=unknown
Chip Description: NXP LPC2129
ClockFreq=12.0MHz (Inaccurate). Clock can be changed after reset.
System reset doesn't cause power cycle. Last reset cause(s): Unknown
Does have Flash and is programmable. 128M pop Mask: 0001
Mem MFlash256 of type Flash from 0000 for 253952 bytes. RO
Mem Ram16 of type RAM from 40000000 for 16384 bytes.
PrgFlash from 0000 to 40000 (262144 bytes). 4 Variable sized page rules (8 8K,2 64K,7 8K,1 8K (locked))
  'Word' width: 4. Cannot read after programming starts
Peripheral GPIO_1 at 0xE0028010, size=16. Is part of Chip
  General Purpose IO
Peripheral GPIO_0 at 0xE0028000, size=16. Is part of Chip
  General Purpose IO
Peripheral I2C_0 at 0xE001C000, size=32. Is part of Chip
  I2C Interface
Peripheral VIC at 0xFFFFF000, size=575. Is part of Chip
  Vectored interrupt Controller
Peripheral SYSCTRL at 0xE01FC040, size=324. Is part of Chip
  System control block
Peripheral TIMER_1 at 0xE0008000, size=64. Is part of Chip
  Timer
Peripheral TIMER_0 at 0xE0004000, size=64. Is part of Chip
  Timer
Peripheral SPI at 0xE0020000, size=31. Is part of Chip
  SPI Interface
Peripheral RTC at 0xE0024000, size=134. Is part of Chip
  Real time clock
Peripheral CANAF at 0xE0038000, size=16416. Is part of Chip
  CAN Acceptance Filter
Peripheral CANCEN at 0xE0040000, size=12. Is part of Chip
  CAN Central Registers
Peripheral CAN_2 at 0xE0048000, size=96. Is part of Chip
  Can Controller Register
Peripheral CAN_1 at 0xE0044000, size=96. Is part of Chip
  Can Controller Register
Peripheral MAM at 0xE01FC000, size=5. Is part of Chip
  Memory Acceleration Module
Peripheral ADC at 0xE0034000, size=52. Is part of Chip
  Analog to Digital Converter
Peripheral WDT at 0xE0000000, size=16. Is part of Chip
  Watchdog Timer
Peripheral UART0 at 0xE000C000, size=49. Is part of Chip
  UART
Peripheral UART1 at 0xE0010000, size=49. Is part of Chip
  UART
Peripheral PCB_2119 at 0xE002C000, size=12. Is part of Chip
  Pin Control Block 214x
<link href="file:///C:/nxp/LPCXpresso_7.6.2_326/lpcxpresso/bin/nxp_lpcxxxx_peripheral.xme" type="simple" show="embed" />
CPUID=0x4F1F0F0F, Little-Endian. Name=ARM7TDMI-S, Chip=LPC2129,
CpuNum=7, Rev=4.4, MaxInts=2, SysTickCal=0000
State is: Stopped (Was Running)  (stop cause: Halt)
Emulator support: 'Code Red WinUSB emulator support for ARM7', version: 2.0
Connected to emu0: 'WIN64HS12'
Connection state: ConnAndReset. DP ID=4F1F0F0F. Sticky=10
Speed=11. Frequency=250KHz. Packet delay=0, Poll delay=0. Info from speed test.
Retries=0. Since last Info request: 0
0 devices:

So it seems, that the PC has connection with the LPC2129, but if LPCXpresso starts to download any software, it always hangs before the software was downloaded completely.

Does anyone have an advice or an idea, how I could get it to work?

Thank you in advance, Andreas
0 Kudos
Reply
6 Replies

1,295 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Andreas Guth on Tue Mar 17 10:40:16 MST 2015
Today I installed LPCXpresso on a Windows 7 system and there it worked much better, but far away from well. Sometimes the software was downloaded and I could do a couple of steps over the source code, but I still got a lot of "Target reported errors" messages with strange reasons. Then I saw, that there's an option called MaximumWireSpeed (under Project > Properties > Run/Debug Settings > Edit > Debugger > Target Configuration > Debug options for ... > MaximumWireSpeed) and since I changed this to 10000 (instead of leave it blank = Auto-Detect), it works quite well.

Finally I went back to my good old WinXP PC and tried the same there, but it still hangs up on launching the app. I also tried that "Initialise LPC-Link as HID", but it hang too. So I will not use the WinXP system for further LPCXpresso development.

Thanks again, Andreas

0 Kudos
Reply

1,295 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Mar 17 06:33:31 MST 2015
As already stated, Windows XP is no longer a supported platform.

I've just tried debugging an Olimex LPC2129 board here with LPCXpresso 7.6.2 on my Windows 7 setup with an LPC-Link. All seems to work fine.

The main things to try at this stage would be to boot the board into ISP mode (http://www.lpcware.com/content/faq/lpcxpresso/regaining-debug-access) and also to check against the troubleshooting section at the end of - http://www.lpcware.com/content/faq/lpcxpresso/booting-lpc-link

One other thing that you could try would be to change the default firmware that the LPC-Link is booted with. By default on Windows XP, 'winusb' firmware is used. But you could try using the 'hid' variant that is used on other Windows variants. To do this, disconnect the LPC-Link from your PC, and power down your board, then go to

Window - Preferences - LPCXpresso - LPC-Link options

and ensure that "Initialise LPC-Link as HID" is ticked. Then try debugging again.

Beyond that, I'm afraid that there isn't much else I can suggest.

Regards,
LPCXpresso Support
0 Kudos
Reply

1,295 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Tue Mar 17 05:28:20 MST 2015

Quote: Andreas Guth
It's a PC with Windows XP SP3.



Although XP isn't tested, my XP is working fine here with M3 / M0 chips  :O  I can't confirm this for LPC21xx, so I would recommend to test your stuff with Win7  :)
0 Kudos
Reply

1,295 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Mon Mar 16 10:48:40 MST 2015
From the very top of the download page at
http://www.lpcware.com/lpcxpresso/downloads/windows

It states

Quote:
Important Note

    Following the discontinuation of support by Microsoft, Windows XP is no longer an officially supported platform. LPCXpresso may continue to work on Windows XP but this can no longer be guaranteed. LPCXpresso is no longer tested on Windows XP.

0 Kudos
Reply

1,295 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Andreas Guth on Mon Mar 16 10:14:44 MST 2015
It's a PC with Windows XP SP3.
0 Kudos
Reply

1,295 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Mon Mar 16 09:43:43 MST 2015

Quote: Andreas Guth

I have
- a PC with LPCXpresso 7.6.3_326 installed



OS also  :quest:
0 Kudos
Reply