Skip to main content
Explorer
December 18, 2024
Solved

STM32H7 USB CDC - without VBUS pin?

  • December 18, 2024
  • 2 replies
  • 1374 views

I am using the STM32H743ZIT6 MCU to enable USB CDC. In my schematic, I have not defined the VBUS pin; I have only defined the CDC lines. Can I still use CDC without the VBUS pin? Below is the photo of my schematic for reference. Please help me.

Thank you for your assistance.

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

    Thank you for providing the solution.

    2 replies

    Super User
    December 18, 2024

    > Can I still use CDC without the VBUS pin?

    Yes. You are not required to connect VBUS to use USB.

    The USB standard does require that you check VBUS before energizing the data lines, but you can typically safely ignore that. If your device is USB powered, there is no need to check.

    Schematic looks good.

    Rahu2710AuthorAnswer
    Explorer
    December 27, 2024

    Thank you for providing the solution.

    Visitor II
    December 20, 2024

    Screenshot from 2024-12-20 10-44-38.pngScreenshot from 2024-12-20 10-44-29.pngScreenshot from 2024-12-20 10-44-18.pngScreenshot from 2024-12-20 10-44-01.pngScreenshot from 2024-12-20 10-43-56.pngScreenshot from 2024-12-20 10-43-46.pngScreenshot from 2024-12-20 10-43-39.pngScreenshot from 2024-12-20 10-43-31.pngScreenshot from 2024-12-20 10-43-20.pngi used this configuration setup in ioc file and call the cdc transmit function in main.c but not working out , is this happening because of VBUS missing as mentioned above by rahu2710 , he is from hardware team , and i am from software team .

    please help me .

    Super User
    December 20, 2024

    > "not working out"

    This is not a useful description of a problem. What behavior do you see? What behavior are you expecting? Have you done any debugging?

    Consider working from a known good example, or using that as a base.

    STM32CubeH7/Projects/STM32H743I-EVAL/Applications/USB_Device/CDC_Standalone/Src/main.c at 662d95d4bc2a03d5c3647e673e3edec218507e5b · STMicroelectronics/STM32CubeH7