-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Description
CURRENT: upload_protocol = dfu
CURRENT: upload_protocol = dfu
"C:\Users\Max\.platformio\packages\tool-dfuutil\bin\dfu-util" -d 0x2341:0x0069,0x2341:0x0369 -a 0 -s 0x4000:leave -D "C:\Users\Max\Desktop\ren\example\.pio\build\uno_r4_minima\firmware.bin"
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/
Opening DFU capable USB device...
Device ID 2341:0369
Device DFU version 0101
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 0101
Warning: DfuSe option used on non-DfuSe device
Device returned transfer size 64
DfuSe interface name: "CodeFlash "
Downloading element to address = 0x00004000, size = 70240
Erase [ ] 0% 0 bytes
Erase [= ] 4% 2816 bytes
Erase [== ] 8% 5632 bytes
Erase [=== ] 12% 8448 bytes
Erase [==== ] 16% 11264 bytes
Erase [===== ] 20% 14080 bytes
Erase [====== ] 24% 16896 bytes
Erase [======= ] 28% 19712 bytes
Erase [======== ] 32% 22528 bytes
Erase [========= ] 36% 25344 bytes
Erase [========== ] 40% 28096 bytes
Erase [=========== ] 44% 30912 bytes
Erase [============ ] 48% 33728 bytes
Erase [============= ] 52% 36544 bytes
Erase [============== ] 56% 39360 bytes
Erase [=============== ] 60% 42176 bytes
Erase [================ ] 64% 44992 bytes
Erase [================= ] 68% 47808 bytes
Erase [================== ] 72% 50624 bytes
Erase [=================== ] 76% 53440 bytes
Erase [==================== ] 80% 56192 bytes
Erase [===================== ] 84% 59008 bytes
Erase [====================== ] 88% 61824 bytes
Erase [======================= ] 92% 64640 bytes
Erase [======================== ] 96% 67456 bytes
Erase [=========================] 100% 70240 bytes
Erase done.
Download [ ] 0% 0 bytes
Then it hangs forever.
Likely this is becuase
- The wrong dfu-util version is used, it really really needs that one referenced in https://downloads.arduino.cc/packages/package_index.json (
"version": "0.11.0-arduino5", "name": "dfu-util"
). PlatformIO built in one has problems on some systems (Flashing usingdfu-util
reports invalid status maxgerhardt/platform-renesas-old-dontuse#2) - The
-s 0x4000:leave
syntax does not work (with the one from the Arduino IDE) -Q
flag is not given for final reset (like Arduino IDE does)
Metadata
Metadata
Assignees
Labels
No labels