New installation, but LPC-link error

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

New installation, but LPC-link error

289 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Kaare on Tue Jul 12 05:29:42 MST 2011
Hi

I have just installed the LPCXpresso V4.05, and trying to get the Blinky example for the LPC1114/302 board up and running.
But when I try to start the debugger, I get the following error:

[I]No emulator or board available.
This could be because it is unpowered, unconnected or already in use[/I]

I have connected the Expresso board to my PC, and there is power on the module.
I made the default install when I first connected the board to the PC.
I cannot find any information that i should install another driver?

I have tried to change some settings for the debugger interface, but nothing helps.
Please help! Why does this not work right out of the box?

Thanks
Kaare
0 Kudos
5 Replies

273 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Kaare on Tue Jul 12 07:23:53 MST 2011

Quote: CodeRedSupport
So that looks OK. What happens if you now try to start a debug session from within the IDE using Quickstart -> Debug ?

Regards,
CodeRedSupport



OK, now it connects! Great! But not easy...

But, it runs EXTREMELY slow?
Stepping over a "i++" takes 4 seconds...

br
Kaare
0 Kudos

273 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Jul 12 07:18:23 MST 2011
So that looks OK. What happens if you now try to start a debug session from within the IDE using Quickstart -> Debug ?

Regards,
CodeRedSupport
0 Kudos

273 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Kaare on Tue Jul 12 07:05:29 MST 2011
Here is the result of the scripts:

C:\nxp\LPCXpresso_4.0.5_123\lpcxpresso\bin>crt_emu_lpc11_13_nxp -info-emu -wire=
hid
Ni: LPCXpresso Debug Driver v4.0 (Jun 21 2011 23:10:27)
1 Emulators available:
0. T1S6RGRIA    LPC-Link Probe v1.0 (Code Red - LPCXpresso)

C:\nxp\LPCXpresso_4.0.5_123\lpcxpresso\bin>crt_emu_lpc11_13_nxp -info-target -pL
PC1114/302 -wire=hid
Ni: LPCXpresso Debug Driver v4.0 (Jun 21 2011 23:10:27)
Nc: Looked for chip XML file in C:/nxp/LPCXpresso_4.0.5_123/lpcxpresso/bin/LPC11
14/302.xml
Nc: Looked for vendor directory XML file in C:/nxp/LPCXpresso_4.0.5_123/lpcxpres
so/bin/nxp_directory.xml
Nc: Found generic directory XML file in C:/nxp/LPCXpresso_4.0.5_123/lpcxpresso/b
in/crt_directory.xml
AP Ack: 04
Nc: Mem-AP ID: 0x04770021  ROM Addr: 0xE00FF003
Nc: Emu(0): Conn&Reset. DpID:  BB11477. Info: T1S6RGRIA
Nc: SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Nc: Packet delay: 0  Poll delay: 0.
Nc: NXP: LPC1114/302  Part ID: 0x2540102B
Chip=LPC1114/302, from NXP (formerly Philips), in family LPC11xx, version=unknow
n
Chip Description: NXP LPC1114/302
ClockFreq=48.0MHz (Accurate). Clock can be changed after reset.
System reset doesn't cause power cycle. Last reset cause(s):  Power
Does have Flash and is programmable. 128M pop Mask: 0001
Mem MFlash32 of type Flash from 0000 for 32768 bytes. RO
Mem RamLoc8 of type RAM from 10000000 for 8192 bytes.
PrgFlash from 0000 to 8000 (32768 bytes). 1 Variable sized page rules (8 4K)
  'Word' width: 4. Cannot read after programming starts
Peripheral PMU at 0x40038000, size=24. Is part of Chip
  Power management Unit
Peripheral UART0 at 0x40008000, size=85. Is part of Chip
  UART
Peripheral WDT at 0x40004000, size=20. Is part of Chip
  Watchdog Timer
Peripheral TMR161 at 0x40010000, size=128. Is part of Chip
  Timer16
Peripheral TMR160 at 0x4000C000, size=128. Is part of Chip
  Timer16
Peripheral I2C0 at 0x40000000, size=64. Is part of Chip
  I2C Interface
Peripheral ADC at 0x4001C000, size=56. Is part of Chip
  Analog to Digital Converter
Peripheral SSP1 at 0x40058000, size=40. Is part of Chip
  SPI Interface
Peripheral SSP0 at 0x40040000, size=40. Is part of Chip
  SPI Interface
Peripheral TIMER1 at 0x40018000, size=120. Is part of Chip
  Timer
Peripheral TIMER0 at 0x40014000, size=120. Is part of Chip
  Timer
Peripheral IOCON at 0x40044000, size=176. Is part of Chip
  IO Configuration Block
Peripheral GPIO3 at 0x50030000, size=49176. Is part of Chip
  GPIO
Peripheral GPIO2 at 0x50020000, size=49176. Is part of Chip
  GPIO
Peripheral GPIO1 at 0x50010000, size=49176. Is part of Chip
  GPIO
Peripheral GPIO0 at 0x50000000, size=49176. Is part of Chip
  GPIO
Peripheral SYSCTL at 0x40048000, size=1016. Is part of Chip
  System control block
Peripheral NVIC at 0xE000E000, size=3380. Is part of Chip
  NVIC CM0 Control/Status Regsiters
Peripheral DCR at 0xE000EDF0, size=16. Is part of Chip
  M0 Debug Core Registers
<link href="file:///C:/nxp/LPCXpresso_4.0.5_123/lpcxpresso/bin/nxp_lpc11_13_per
ipheral.xme" type="simple" show="embed" />
CPUID=0x410CC200, Little-Endian. Name=CM0, Chip=LPC1114/302,
CpuNum=0, Rev=0.0, MaxInts=32, SysTickCal=0004
State is: Stopped (stop cause: Step)
Emulator support: 'Code Red HID emulator support for Cortex-M3', version: 2.0
Connected to emu0: 'T1S6RGRIA'
Connection state: ConnAndReset. DP ID=BB11477. Sticky=10
Speed=1. Frequency=3000KHz. Packet delay=0, Poll delay=0. Info from speed test.
Retries=0. Since last Info request: 0
AP is_sel=SEL. AP rel idx=0 for ID=4770021
ROM table @E00FF003. Debug is OK. Bank=0, CtrlBase=23000000
0 devices:

C:\nxp\LPCXpresso_4.0.5_123\lpcxpresso\bin>
0 Kudos

273 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Kaare on Tue Jul 12 06:55:47 MST 2011

Quote: CodeRedSupport
Firstly, take a look at this FAQ (plus the others that it points to)....
http://support.code-red-tech.com/CodeRedWiki/FailedToConnect



Already found that and tried it, but no change.

Quote: CodeRedSupport
 

If you are still having problems, then please answer/try out the following....

What OS are you running?
Are you running the OS natively or under a virtual machine?
Is this a desktop or a laptop?



XP Pro
No VM
Laptop

Quote: CodeRedSupport


Unplug and then reconnect the LPCXpresso board.
- Can you now see the "USB Device with DFU Capabilities" in Device manager?



Yes, the mentioned device comes and goes when I plug and unplug the cable.
I have tried to reinstall several times, and restarted PC.

Quote: CodeRedSupport


Can you try connecting using a different USB cable - does this help?
Can you try connecting to a different USB port on your PC - does this help?



Changed cable and port. No change.

Quote: CodeRedSupport


If you are still not able to connect, then please run through the diagnostics script below and post the results....
http://support.code-red-tech.com/Cod...inkDiagnostics

Regards,
CodeRedSupport



OK, I will run the script.

br
Kaare
0 Kudos

273 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Jul 12 06:35:37 MST 2011
Firstly, take a look at this FAQ (plus the others that it points to)....
http://support.code-red-tech.com/CodeRedWiki/FailedToConnect

If you are still having problems, then please answer/try out the following....

What OS are you running?
Are you running the OS natively or under a virtual machine?
Is this a desktop or a laptop?

Unplug and then reconnect the LPCXpresso board.
- Can you now see the "USB Device with DFU Capabilities" in Device manager?

Can you try connecting using a different USB cable - does this help?
Can you try connecting to a different USB port on your PC - does this help?

If you are still not able to connect, then please run through the diagnostics script below and post the results....
http://support.code-red-tech.com/Cod...inkDiagnostics

Regards,
CodeRedSupport
0 Kudos