Page 2 of 2

Re: WeAct stm32f103 usb c

Posted: Wed Sep 09, 2020 6:22 pm
by fpiSTM
You have to enable the USB CDC. If it is not working then probably a wrong USB clock config

Re: WeAct stm32f103 usb c

Posted: Wed Sep 09, 2020 6:38 pm
by sergio
Setting `USB support (if available)` was set to HID

Setting `USB support (if available)` to CDC (with or without serial) makes board ACM device (ttyACM0) after `Upload`

Re: WeAct stm32f103 usb c

Posted: Wed Sep 09, 2020 7:30 pm
by fpiSTM
USB HID has no link with the HID bootloader. You have to enable the USB CDC then when you want upload again, a dedicated sequence is initiated on the USB CDC and restart in the HID BL. Of course the linked Serial port have to be selected.

Re: WeAct stm32f103 usb c

Posted: Wed Sep 09, 2020 7:59 pm
by sergio
Very complicated. But indeed it works this way! Thank you fpiSTM and ag123.

Re: WeAct stm32f103 usb c

Posted: Wed Sep 09, 2020 8:12 pm
by fpiSTM
Yes and no. To restart in a dedicated mode it is required to have a trigger, in that case thanks the USB Serial port.

Re: WeAct stm32f103 usb c

Posted: Fri Feb 05, 2021 1:30 pm
by Araneus
Which version of bootloader did you use? With current version 2.2.2 I receive the error in Arduino IDE:

Code: Select all

An error occurred while uploading the sketch

+-----------------------------------------------------------------------+
|         HID-Flash v2.2.1 - STM32 HID Bootloader Flash Tool            |
|     (c)      2018 - Bruno Freitas       http://www.brunofreitas.com   |
|     (c) 2018-2019 - Vassilis Serasidis  https://www.serasidis.gr      |
|   Customized for STM32duino ecosystem   https://www.stm32duino.com    |
+-----------------------------------------------------------------------+

Usage: hid-flash <bin_firmware_file> <comport> <delay (optional)>
And also, Windows 10 doesn't recognize it at all. It shows Unknown USB Device (Device Descriptor Request Failed)

Update: Surprisingly, the problem disappeared when I flashed the bootloader for WeAct https://github.com/WeActTC/BluePill-Plu ... T6/Arduino