platformio / platform-ststm32

ST STM32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/ststm32
Apache License 2.0
405 stars 312 forks source link

STM32F103RE_creality - No DFU capable USB device found #644

Open mtthw-meyer opened 2 years ago

mtthw-meyer commented 2 years ago

Trying to upload on Linux Mint 5.13. I've installed the udev rules and confirmed the group permissions. The USB device appears to be present.

[72562.711131] usb 1-4: new full-speed USB device number 15 using xhci_hcd
[72562.868148] usb 1-4: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[72562.868161] usb 1-4: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[72562.868166] usb 1-4: Product: USB Serial
[72562.869949] ch341 1-4:1.0: ch341-uart converter detected
[72562.870560] usb 1-4: ch341-uart converter now attached to ttyUSB0
Building in release mode
Compiling .pio/build/STM32F103RE_creality/src/src/inc/Warnings.cpp.o
Linking .pio/build/STM32F103RE_creality/firmware-20220812-171344.elf
Checking size .pio/build/STM32F103RE_creality/firmware-20220812-171344.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]  11.3% (used 7412 bytes from 65536 bytes)
Flash: [===       ]  28.7% (used 150476 bytes from 524288 bytes)
Building .pio/build/STM32F103RE_creality/firmware-20220812-171344.bin
Configuring upload protocol...
AVAILABLE: blackmagic, cmsis-dap, dfu, jlink, serial, stlink
CURRENT: upload_protocol = dfu
Looking for upload port...
Auto-detected: /dev/ttyUSB0
Uploading .pio/build/STM32F103RE_creality/firmware-20220812-171344.bin
No DFU capable USB device found
dfu-util 0.7
mtthw-meyer commented 2 years ago

Tried changing the dfu-util to version 0.11, also failed. Tried using the bundled 0.9 as well, also failed.