2024-07-11 12:50 AM
Hi everyone,
I am currently working on a project involving the STM32G0B1RE microcontroller and had encountered an issue while configuring the USB_DRD_FS (Dual Role Device Full Speed) in Device mode using STM32CubeIDE.
Here are the steps I followed:
After completing these configurations, I noticed that the GPIO pins associated with the USB_DRD_FS peripheral didn't appear in the generated code or usbd_conf.c
Best regards,
Sravani
2024-07-13 03:41 AM
i need your help,
2024-07-13 03:42 AM
+ gen. code + compile : no errors/warnings ?
No errors
Sure about (2x green wire) DP+/- ?
Sure
2024-07-13 04:03 AM - edited 2024-07-13 04:05 AM
I am testing USB_OTG_FS in device mode on an STM32H7. The USB pins were successfully generated in PCD_MSP_Init.
However, when I attempt to run USB_DRD_FS in device mode on an STM32G0 using the same configuration, the USB pins are not generating.
Same i see on F103 - cannot find usb pins define -- but it works. So forget this, its not your problem.
+
>Sure about (2x green wire) DP+/- ? Sure
So again:
+
Connected...can see in system (Windows? -> ding dong or so) ?
If not - proof, you dont use a charger cable ; check green data lines have contact to the usb plug inner contacts.
If nothing happens , exchange the green wires...just to see. :)
2024-07-13 05:31 AM
which controller have you tested?
2024-07-13 05:51 AM
as i wrote:
>Same i see on F103
on H743 i find it, same you.
2024-07-14 04:43 AM
"Connected...can see in system (Windows? -> ding dong or so) ?
If not - proof, you dont use a charger cable ; check green data lines have contact to the usb plug inner contacts.
If nothing happens , exchange the green wires...just to see"
i am checking in device manager for usb port.
"check green data lines have contact to the usb plug inner contacts. If nothing happens, exchange the green wires...just to see"
i got usb not recognized notification and
2024-07-14 05:19 AM
So there is some connection - but wrong.
How did you check DP/DM (green) lines are really connected right and not reverse ?
2024-07-14 06:02 AM
When I run the project with the DP (PA12) and DM (PA11) pins connected to a USB cable, I receive a notification stating "USB not recognized." However, when I reverse the connection of these pins, I do not receive any notification at all, and there are no changes in the USB ports listed in the Device Manager.
2024-07-14 08:15 AM
Ok, so with seem correct connection.
+
Try: not select > USB_DRD_FS (Dual Role Device Full Speed) ,
but > Device only .
(I have set this - and its working.)
2024-07-14 11:47 PM
we have only USB_DRD_FS in connectivity, In that we have 3 modes 1. only host, 2. only device, 3.drd, so I selected only device mode