Page 1 of 1

bluepill STM32F103C8 - cdc usb not working

Posted: Tue Sep 13, 2022 9:03 pm
by rozrabiaka
Hi,
Serial generic CDC supersede.
After upload code Windows says "unknown device".
I'm trying on three bluepills, always that same..
Any ideas?

Thank's.

Re: bluepill STM32F103C8 - cdc usb not working

Posted: Wed Sep 14, 2022 4:53 am
by ag123
make sure you have a STM32F103 C8 (or cb) suffix chip and not a C6 chip. There are a lot of C6 chips floating in the online "flea markets".
C6 is likely not enough to run stm32duino properly.
and you have to select usb-cdc-serial from the menu
https://github.com/stm32duino/wiki/wiki

oh and you need a st-link dongle
https://www.adafruit.com/product/2548
https://www.st.com/en/development-tools/st-link-v2.html
https://octopart.com/2548-adafruit+indu ... 88022?r=sp

you can use a usb-uart (3.3v) dongle and set boot0 for that, but if you are not familiar with this, you may like to use a st-link instead
you would also need stm32cube programmer
https://www.st.com/en/development-tools ... eprog.html

and do review the wiki
https://github.com/stm32duino/wiki/wiki

if you are new to these the "preferred" boards are like
Nucleo STM32F401RE and Nucleo STM32F411RE
https://github.com/stm32duino/Arduino_C ... -64-boards
those have a quite a lot of resources and run pretty fast

Re: bluepill STM32F103C8 - cdc usb not working

Posted: Thu Sep 15, 2022 8:56 am
by GonzoG
"Unknown device" means that you don't have driver for this device in system.
Check VID and PID (vendor and product ID).
Bluepill with CDC enabled should identify as: VID: 0483, PID: 5740.