Content originally posted in LPCWare by MikeSimmonds on Tue Oct 01 03:55:55 MST 2013
Debugger [V5/V6] Does Not Load Redlink Firmware into the LPC-Link2
I am running LPCXpresso 6 on XP pro SP3 -- 32-bit
It is my understanding that after a PC reboot or removal and re-insertion
the Link2 is in "DFU" mode -- and device manager agrees.
I also understand the when I start a debug session, the IDE should
download 'redlink' firmware to the LPC-Link2. Then go on to 'find'
an 'emulator'.
[Firstly: is this overiew stated correctly?]
THIS IS NOT HAPPENING.
The Link2 firmware download is NOT occuring on my PC.
Is there a logging option to see what is happening here to confirm
that this is indeed being attempted and to see what error messages result.
Using Process Explorer (from SystemInternals) and a fast pause finger,
I can see 'Starter' running 'dfu-util -l'.
Running this command by hand gives:
----------------------------
dfu-util 0.6
Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Found Runtime: [1fc9:000c] devnum=0, cfg=1, intf=0, alt=0, name="DFU"
----------------------------
But I never see anything that looks a firmware download.
I had this problem also with Red Suite 5 [256K full licence].
Code Red gave me a work around but DID NOT resolve the issue
before the support period expired!
Using a command line (by hand) given to me by Code Red Support
(adapted for firmware file name change) gives --
----------------------------
dfu-util -d 1FC9:000C -c 0 -t 2048 -R -D LPC4320_Redlink_V2_2.bin.hdr
dfu-util 0.6
Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Filter on vendor = 0x1fc9 product = 0x000c
Opening DFU capable USB device... ID 1fc9:000c
Run-time device DFU version 0100
Claiming USB DFU Runtime Interface...
Determining device status: state = dfuIDLE, status = 0
WARNING: Runtime device already in DFU state ?!?
Found Runtime: [1fc9:000c] devnum=0, cfg=1, intf=0, alt=0, name="DFU"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0100
No valid DFU suffix signature
Warning: File has no DFU suffix
bytes_per_hash=459
Copying data from PC to DFU device
Starting download: [##################################################] finished
!
unable to read DFU status
can't detach
Resetting USB to switch back to runtime mode
----------------------------
From then on until reboot or LPC-Link2 removal reinsertion, the IDE
debug succeeds.
How can the automatic firmware download be made to happen.
Regards, Mike
PS Do any other users have this problem?