Workaround:
Firmware update successful when using an external USB hub (USB 3 also).? After successful flash, I try again without USB hub and gets stuck at 0%. With USB hub, success.
?
Original message:?
Please help, dfu-util connection is working (finds device) but flash not responding.
?
Bought from ?>1 year ago
Self-test: 12/12 pass
Firmware is from 2023
?
I try to update firmware. I follow https://tinysa.org/wiki/pmwiki.php?n=Main.UpdatingTheFirmware
?
Ubuntu 24.04 LTS
USB 3 port
$ sudo apt install dfu-util
(I also try manual dfu-util from provided link in wiki, same result)
$ curl -o tinySA.bin
$ dfu-util -a 0 -s 0x08000000:leave -D tinySA.bin
(I censor vendor:device)
dfu-util 0.11
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 vendor:device
Device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(10) = dfuERROR, status(10) = Device's firmware is corrupt. It cannot return to run-time (non-DFU) operations
Clearing status
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 011a
Device returned transfer size 2048
DfuSe interface name: "Internal Flash ?"
Downloading element to address = 0x08000000, size = 113244
Erase ? ? ? [ ? ? ? ? ? ? ? ? ? ? ? ? ] ? 0% ? ? ? ? ? ?0 bytes
?
Stuck at 0% forever.
?
Verbose output with -v still stuck at 0% forever
dfu-util 0.11
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/
libusb version 1.0.27 (11882)
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 vendor:device
Device DFU version 011a
DFU attributes: (0x0b) bitCanDnload bitCanUpload bitWillDetach
Detach timeout 255 ms
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(10) = dfuERROR, status(10) = Device's firmware is corrupt. It cannot return to run-time (non-DFU) operations
Clearing status
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 011a
Device returned transfer size 2048
DfuSe interface name: "Internal Flash ?"
Memory segment at 0x08000000 ?64 x 2048 = 131072 (rew)
Downloading element to address = 0x08000000, size = 113244
Erasing page size 2048 at address 0x08000000, page starting at 0x08000000
?
If I try to read data, also stuck at 0% forever.
$ dfu-util -a 0 -s 0x08000000:1024 -U newfile.bin
?
Please help I tried for 2 hours no luck