WeAct stm32f103 usb c

User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: WeAct stm32f103 usb c

Post by fpiSTM »

You have to enable the USB CDC. If it is not working then probably a wrong USB clock config
User avatar
sergio
Posts: 5
Joined: Fri Sep 04, 2020 5:06 am
Location: Earth ⨁

Re: WeAct stm32f103 usb c

Post 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`
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: WeAct stm32f103 usb c

Post 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.
User avatar
sergio
Posts: 5
Joined: Fri Sep 04, 2020 5:06 am
Location: Earth ⨁

Re: WeAct stm32f103 usb c

Post by sergio »

Very complicated. But indeed it works this way! Thank you fpiSTM and ag123.
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: WeAct stm32f103 usb c

Post 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.
Araneus
Posts: 1
Joined: Sun Jan 24, 2021 11:48 am

Re: WeAct stm32f103 usb c

Post 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
Post Reply

Return to “STM32F1 based boards”