arduino / dfu-utils-cross

scripts to compile (and cross-compile from a Linux machine) dfu-utils package for Linux (x86_64, x86, arm), OSX and Windows.
22 stars 16 forks source link

Trying flash Portenta H7 `Error during download get_status` #7

Closed microhobby closed 3 years ago

microhobby commented 3 years ago

I'm trying to flash a binary to a Arduino Portenta H7 with not success:

dfu-util 0.10-dev

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 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/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 2341:035b
Device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "Internal Flash   "
Downloading element to address = 0x08040000, size = 133392
Erase           [=========================] 100%       133392 bytes
Erase    done.
Download        [                         ]   0%            0 bytesdfu-util: Error during special command "SET_ADDRESS" get_status

I already tried different USB cables, USB ports, but all with the same behavior.

microhobby commented 3 years ago

Ok, this is an interesting problem. For some reason if I unplug my notebook from the power cable, using just the battery, the flash works. My eletrical network, or maybe the highest clock when the notebook is on power cable, is interfering with the flash process. So closing this because it is not a issue in the software,