Downloading program to device fails with "Error obtaining DFU functional descriptor"

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

Downloading program to device fails with "Error obtaining DFU functional descriptor"

608 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vibe37 on Fri Apr 05 06:44:08 MST 2013
Hello,

I cannot download my example binaries compiled with LPCXpresso to my LPC1769 device.  I'm using Debian 6.0.4. I think that the problem is related to dfu-util. When I do the download manually like this:

sudo dfu-util -d 0x471:df55 -c 0 t 2048 -R -D LPCX176x_cmsis2_systick_twinkle.axf
I get the following error:

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 = dfuDNLOAD-IDLE, status = 0
WARNING: Runtime device already in DFU state ?!?
Found Runtime: [0x0471:0xdf55] devnum=6, cfg=0, intf=0, alt=0, name="UNDEFINED"
Claiming USB DFU Interface...
Setting Alternate Setting ...
Determining device status: state = dfuDNLOAD-IDLE, status = 0
aborting previous incomplete transfer
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
Error obtaining DFU functional descriptor: error sending control message: Broken pipe
Transfer Size = 0x1000
bytes_per_hash=4049
Starting download: [dfu_download error -32
Error during download
Any idea how to fix this?
0 Kudos
4 Replies

524 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vibe37 on Sat Apr 06 04:03:17 MST 2013
I tried it from inside a VM running Ubuntu 12, and it works "out of the box" :) The problem seems to be specific to my Debian version.
0 Kudos

524 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Fri Apr 05 09:16:15 MST 2013
Did you read the Linux notes?
http://support.code-red-tech.com/CodeRedWiki/RunningOnLinux
0 Kudos

524 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vibe37 on Fri Apr 05 08:14:29 MST 2013
Thanks for the reply! I followed your instructions:

./crt_emu_cm3_nxp -wire=winusb -pLPC1768 -flash-load-exec=~/temp/lpcworkspace/LPCX176x_cmsis2_systick_twinkle/Debug/LPCX176x_cmsis2_systick_twinkle.axf
And got the following error:

Ni: LPCXpresso Debug Driver v5.0 (Feb 14 2013 02:07:29 build 1131)

Ee(36). libLPC_Link.so file load error.

Et: Failed emulator initialization: E(xx). WinUSB driver load/install error: libLPC_Link.so. libusb-1.0.so.0: cannot open shared object file: No such file or directory
I'm not sure which file cannot be found: libLPC_Link.so or libusb-1.0.so.0? Both files are present in the lpcxpresso/bin directory from where I ran the flash programming utility. Any ideas?
0 Kudos

524 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Apr 05 07:12:12 MST 2013
It does not work because you are trying to download your image to the LPC3154 on LPC-Link.

If you want to download your image the the LPC1769 *via* the LPC-Link, you need to use the command line flash programming tool:

http://support.code-red-tech.com/CodeRedWiki/CommandLineFlashProgramming
0 Kudos