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