LPCXpresso 4 LPCLink won't connect anymore

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPCXpresso 4 LPCLink won't connect anymore

517件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wdawson61 on Fri Jul 01 15:39:06 MST 2011
Ubuntu 10.10 32 bit Native
LPCLink
Custom LPC1754 hw


I've just started having a 99% repoducible issue using custom LPC1754 hw and an LPCLink.  I've tried starting the board with p2.10 held low, to enter ISP.  No difference.  I say 99% because on one invocation of crt_emuxxx I got a message about [B]target not[/B] being [B]debuggable[/B] (see below), but all of the other invocations hang at the:
Nc: Packet delay: 0 Poll delay: 0.
line. and I need to ctrl-c to get back to the prompt.

Quote:

[B]lsusb [/B]
Bus 002 Device 004: ID 046d:0804 Logitech, Inc. Webcam C250
Bus 002 Device 003: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 010: ID 0471:df55 Philips (or NXP) LPCXpresso LPC-Link
Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
wdawson@Cornelius:/usr/local/lpcxpresso_4.0.5_113/lpcxpresso/bin$




Quote:


[B]dfu-util -d 0x471:0xdf55 -c 0 -t 2048 -R -D LPCXpressoWIN.enc[/B]
dfu-util - (C) 2007-2008 by OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY

Opening USB Device 0x0471:0xdf55...
Claiming USB DFU Runtime Interface...
Determining device status: state = dfuIDLE, status = 0
WARNING: Runtime device already in DFU state ?!?
Found Runtime: [0x0471:0xdf55] devnum=10, cfg=0, intf=0, alt=0, name="UNDEFINED"
Claiming USB DFU Interface...
Setting Alternate Setting ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
Transfer Size = 0x0800
bytes_per_hash=604
Starting download: [##################################################] finished!
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Done!
can't detach: error sending control message: Broken pipe
Resetting USB to switch back to runtime mode
wdawson@Cornelius:/usr/local/lpcxpresso_4.0.5_113/lpcxpresso/bin$




Quote:

[B]crt_emu_cm3_nxp -info-emu -wire=winusb[/B]
Ni: LPCXpresso Debug Driver v4.0 (Jun 27 2011 18:30:04)
1 Emulators available:
0. LPCLINK_1_1LPC-Link Driver LINUX32 v1.1 (Code Red - LPCXpresso)

wdawson@Cornelius:/usr/local/lpcxpresso_4.0.5_113/lpcxpresso/bin$



Quote:

wdawson@Cornelius:/usr/local/lpcxpresso_4.0.5_113/lpcxpresso/bin$ crt_emu_cm3_nxp -info-target -pLPC1754 -wire=winusb -4
Ni: LPCXpresso Debug Driver v4.0 (Jun 27 2011 18:30:04)
Nc: Looked for chip XML file in /usr/local/lpcxpresso_4.0.5_113/lpcxpresso/bin/LPC1754.xml

Nc: Looked for vendor directory XML file in /usr/local/lpcxpresso_4.0.5_113/lpcxpresso/bin/nxp_directory.xml

Nc: Found generic directory XML file in /usr/local/lpcxpresso_4.0.5_113/lpcxpresso/bin/crt_directory.xml

Nc: Emu(0): Conn&Reset. DpID: 2BA01477. Info: LPCLINK_1_1
Nc: SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Nc: Packet delay: 0  Poll delay: 0.



And thats it.  It just hangs at this point until I cycle power to the target or pull the LPCLINK usb cable.

This used to work and all of a sudden nada.  I've tried it on two of my target hw systems with the same results on each.

Once I managed to get (Note slower SWDCLK):

Quote:

wdawson@Cornelius:/usr/local/lpcxpresso_4.0.5_113/lpcxpresso/bin$ crt_emu_cm3_nxp -s250 -info-target -pLPC1754 -wire=winusb -4
Ni: LPCXpresso Debug Driver v4.0 (Jun 27 2011 18:30:04)
Nc: Looked for chip XML file in /usr/local/lpcxpresso_4.0.5_113/lpcxpresso/bin/LPC1754.xml

Nc: Looked for vendor directory XML file in /usr/local/lpcxpresso_4.0.5_113/lpcxpresso/bin/nxp_directory.xml

Nc: Found generic directory XML file in /usr/local/lpcxpresso_4.0.5_113/lpcxpresso/bin/crt_directory.xml

Ed:02: Failed on connect: Ep(01). Target marked as not debuggable.
Et: Emu(0): Conn&Reset. Was: None. DpID: 2BA01477. Info: LPCLINK_1_1
Error 0: (null)
Last sticky: 16. AIndex: 0
No MemAp selected
No Speed test
SWD Frequency: 100 KHz. RTCK: False. Vector catch: False.
Packet delay: 0  Poll delay: 0.
wdawson@Cornelius:/usr/local/lpcxpresso_4.0.5_113/lpcxpresso/bin$



Does this last seemingly random occurence, indicate that fuse bits or CRP is set?  I have started the unit with p2.10 brought low, but is it necessary to [I]keep[/I] it low?  For how long?

Any help appreciated!
-Wade
0 件の賞賛
返信
2 返答(返信)

502件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wdawson61 on Fri Jul 01 19:57:18 MST 2011
I just tried same LPCLINK and target hw on a windows 3.6.3_317 build and all works correctly.  (un)Fortunately my main dev system is on Linux and its hosed, so I'll need to concentrate on getting it unbroken.

Could migrating from LPCXpresso 3 to 4 cause this?

I notice also that the installation did not create any menu shortcuts or way whatsoever to run lpcxpresso!! I have to go find it and run it from the install directory.  I've tried uninstalling and reinstalling but still no luck.

[B]RANDR EXTENSION[/B]
On a side note, does the installer require the RANDR extension?  Its brokwen on my machine becasue of nvidia display issues at the moment.
0 件の賞賛
返信

502件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Jul 01 16:30:04 MST 2011
ISP is selected if ISP pin is low during reset :)

I like to keep ISP pin low until debugger starts, so I know that programming worked. Then I release ISP pin and 'Restart'.

Also it's a good idea to switch vector catch on:

http://support.code-red-tech.com/CodeRedWiki/DebugAccessChip
0 件の賞賛
返信