AutoBuildMarlin icon indicating copy to clipboard operation
AutoBuildMarlin copied to clipboard

dfu-util command -d device not correct

Open corvand opened this issue 2 years ago • 0 comments

Symptom: No DFU capable USB device available *** [upload] Error 74

Workaround:

• Give the upload command, which will fail, copy the command, add the -v switch and reissue the command
• Find the "dfu-util" command
• Remove the device switch -d remove everything until the -a switch and add the -w switch at the end
• Original command: dfu-util.exe -d 0x0483:0xdf11,0x1EAF:0x0003,0x0483:0x3748 -a 0 -s 0x08000000:leave -D "C:\Projects\Lumen\Marlin-bugfix-2.0.x\.pio\build\Index_Mobo_Rev03\firmware.bin"
• Changed command: dfu-util.exe -a 0 -s 0x08000000:leave -D "C:\Projects\Lumen\Marlin-bugfix-2.0.x\.pio\build\Index_Mobo_Rev03\firmware.bin"  -w
• Now auto build will wait until the driver is switching into DFU mode (Boot and Reset switch) as per Opulo Doc

Fix: Not available, apparently the device string isn't created right..

Extra information:

The "dfu-util -l" command reports the device in dfu mode as follows:

dfu-util.exe -l -w dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2020 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Waiting for device, exit with ctrl-C Found DFU: [0483:df11] ver=2200, devnum=8, cfg=1, intf=0, path="3-3.4", alt=3, name="@Device Feature/0xFFFF0000/01004 e", serial="394D35703439" Found DFU: [0483:df11] ver=2200, devnum=8, cfg=1, intf=0, path="3-3.4", alt=2, name="@OTP Memory /0x1FFF7800/01512 e,01016 e", serial="394D35703439" Found DFU: [0483:df11] ver=2200, devnum=8, cfg=1, intf=0, path="3-3.4", alt=1, name="@Option Bytes /0x1FFFC000/01016 e", serial="394D35703439" Found DFU: [0483:df11] ver=2200, devnum=8, cfg=1, intf=0, path="3-3.4", alt=0, name="@Internal Flash /0x08000000/04016Kg,01064Kg,07*128Kg", serial="394D35703439"

corvand avatar May 26 '22 09:05 corvand