platformio / platform-ststm32

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

dfu upload id mismatch while uploading #349

Open Trance-Paradox opened 4 years ago

Trance-Paradox commented 4 years ago

"No DFU capable USB device available" This is the error while using cmsis

platformio.ini:

[env:genericSTM32F103C8] platform = ststm32 framework = cmsis board = genericSTM32F103C8 upload_protocol = dfu

However this problem doesn't arise when framework = arduino is used. It uploads and resets fine then. upload.log

laveur commented 4 years ago

I have a similar issue with my config:

[env:genericSTM32F103C8]
platform = ststm32
board = genericSTM32F103C8
framework = mbed
upload_protocol = dfu
dharders commented 4 years ago

Is there any current workaround?

I'm hitting this too with similar config. (Arduino and STM32duino bootloader working OK though with blinky). PlatformIO, cmsis combination builds OK but fails upload looking for 1eaf:0003, but only 1eaf:0004 available. Looks like platformio not soft triggering bluepill, thus remaining in USB serial mode.

Would love a workaround if anyone knows of one?