Skip to main content
Visitor II
July 29, 2024
Solved

STM32G0B1KEU6 USB

  • July 29, 2024
  • 3 replies
  • 1205 views

Hello, 

 

I am in an Internship and I got to make communicate a board using a STM32G0B1KEU6 with a PC.
The pin PA12 is configured to be USB_DP and the pin PA11 is configured to be USB_DN.
I don't know how to configure the others parameters and I haven't find any examples for my case.
I can't use others PINs for the communication with the PC so if you have any advices or examples, I will be pleased to receive them.

Thanks

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

    Thank you for your responses.

    I have found this tuto and it works for me.

    3 replies

    Super User
    July 29, 2024

    PA12/PA11 are the correct pins to use. What other parameters are you trying to configure?

    There are examples for USB in the CubeMX repository. Here is one of them. You may need to adapt them to your particular hardware:

    STM32CubeG0/Projects/STM32G0C1E-EV/Applications/USB_Device/CDC_Standalone at master · STMicroelectronics/STM32CubeG0 (github.com)

     

    Super User
    July 29, 2024

    @nono wrote:

    a board using a STM32G0B1KEU6 


    What board, exactly?

    Do you have to do this using the native USB?

    A UART and a USB-to UART adaptor would be simpler ...

     

    Even if your end goal is native USB, I would suggest that you start by getting the basic UART link working first - it will be invaluable for debugging, and will help you get to grips with the chip, the tools, etc ...

    nonoAuthorAnswer
    Visitor II
    August 5, 2024

    Thank you for your responses.

    I have found this tuto and it works for me.