Skip to main content
Associate
July 29, 2024
Solved

STM32G0B1KEU6 USB

  • July 29, 2024
  • 3 replies
  • 1227 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

TDK
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)

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
Andrew Neil
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 ...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
nonoAuthorBest answer
Associate
August 5, 2024

Thank you for your responses.

I have found this tuto and it works for me.