Skip to main content
Visitor II
September 6, 2024
Solved

USB Device CDC (VCOM) in STM32G0B1RCT6

  • September 6, 2024
  • 3 replies
  • 1264 views

HI,

   I want to implement the USB middleware on the STM32G0B1RCT6 to use the CDC class for opening a virtual COM port. Can someone provide an example driver?

    This topic has been closed for replies.
    Best answer by Imen.D

    Hi @Berlin-raj123 ,

    Sorry for the delayed reply on this. 

    Please have a look at this article on How to implement step-by-step the USB Communication Device Class (CDC)

     How to implement USB Communication Device Class (C... - STMicroelectronics Community

    3 replies

    Visitor II
    September 6, 2024

    i am just trying to send the data to computer, USB Detected but , it shows up the "USB Device Not Reconized"

    what  should i do?

    I have attached a screenshot for your reference, along with the programScreenshot 2024-09-06 131620.png

    Technical Moderator
    September 6, 2024

    Hello @Berlin-raj123 ,

    Make sure that all the drivers are installed and that USB connections are correctly made: PA11 (USB_DM) and PA12 (USB_DP) should be connected properly.

    Make sure to configure the system clock to the correct frequency.

    Did you try to follow and test the USB CDC example project provided in the STM32CubeG0 firmware package:

    STM32CubeG0/Projects/STM32G0C1E-EV/Applications/USB_Device/CDC_Standalone at master · STMicroelectronics/STM32CubeG0 · GitHub

    Please have a look at this FAQ, this may help you: USB device not recognized - STMicroelectronics Community

    Visitor II
    September 9, 2024

    HI @Imen.D It's not helpful for me. When I merge your code, I find a lot of mistakes. So, I would like to know the step-by-step process. Could you provide something else?

    Visitor II
    September 11, 2024

    Si, i am waiting for your response.

    Imen.DAnswer
    Technical Moderator
    September 11, 2024

    Hi @Berlin-raj123 ,

    Sorry for the delayed reply on this. 

    Please have a look at this article on How to implement step-by-step the USB Communication Device Class (CDC)

     How to implement USB Communication Device Class (C... - STMicroelectronics Community