bluepill STM32F103C8 - cdc usb not working

All about boards manufactured by ST
Post Reply
rozrabiaka
Posts: 1
Joined: Tue Sep 13, 2022 8:58 pm

bluepill STM32F103C8 - cdc usb not working

Post 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.
ag123
Posts: 1385
Joined: Thu Dec 19, 2019 5:30 am
Answers: 18

Re: bluepill STM32F103C8 - cdc usb not working

Post 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
GonzoG
Posts: 289
Joined: Wed Jan 15, 2020 11:30 am
Answers: 23
Location: Prudnik, Poland

Re: bluepill STM32F103C8 - cdc usb not working

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

Return to “STM boards (Discovery, Eval, Nucleo, ...)”