2024-07-29 06:40 AM
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
Solved! Go to Solution.
2024-08-05 08:43 AM
Thank you for your responses.
I have found this tuto and it works for me.
2024-07-29 06:47 AM
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:
2024-07-29 06:59 AM
@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 ...
2024-08-05 08:43 AM
Thank you for your responses.
I have found this tuto and it works for me.