Skip to main content
Explorer
February 10, 2025
Solved

STM32F103C8T6 USB sanity check

  • February 10, 2025
  • 1 reply
  • 702 views

Hi All, sanity check sought:

I'm using the blue pill (STM32F103C8T6) for a audio project powered & controlled through the serial/USB.

I'm using the STM32 cube and a dev board for the s/w which looks ok; in terms of software I've followed https://controllerstech.com/send-and-receive-data-to-pc-without-uart-stm32-usb-com/ and that works ok.

 

My concern is with the serial -  assuming the above s/w process outlined in the link, is this everything I need for USB communications hardware wise? Or in general anything I'm missing? For instance:
*I've seen resistors on the D+ and D- lines in previous designs, though I'm not sure is these are needed

*I'm using the MIC29302WU as I've quite high current demands from the USB (<500mA) to drive a speaker (this explains the LDO's presence / the requirements)

*Can the VBAT pin be left unconnected or does it need a pullup/down? even if not used

*Boot0 and 1 tied low ok? I'll be using the SWD to flash and won't need to debug/program through the USB

*20pF ok?

 

 

    This topic has been closed for replies.
    Best answer by TDK

    A pullup on DP is required on the STM32F103.

    *Introduction to USB hardware and PCB guidelines using STM32 MCUs - Application note

    TDK_0-1739243136723.png

    > Can the VBAT pin be left unconnected or does it need a pullup/down? even if not used

     If no external battery is used in the application, it is highly recommended to connect VBAT
    externally to VDD.

    Getting started with STM32F10xxx hardware development - undefined

    > Boot0 and 1 tied low ok? I'll be using the SWD to flash and won't need to debug/program through the USB

    Yes.

    1 reply

    TDKAnswer
    Super User
    February 11, 2025

    A pullup on DP is required on the STM32F103.

    *Introduction to USB hardware and PCB guidelines using STM32 MCUs - Application note

    TDK_0-1739243136723.png

    > Can the VBAT pin be left unconnected or does it need a pullup/down? even if not used

     If no external battery is used in the application, it is highly recommended to connect VBAT
    externally to VDD.

    Getting started with STM32F10xxx hardware development - undefined

    > Boot0 and 1 tied low ok? I'll be using the SWD to flash and won't need to debug/program through the USB

    Yes.