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-12 4:56 AM
Checked in All .c files , couldn't generate gpio pins of USB
2024-07-12 4:59 AM
is it(Usb-PD) need for USB_DRD_FS in Device mode?
2024-07-12 5:01 AM
am not using USB-PD
2024-07-12 5:10 AM
But you set/enable USB in Cube ? see the pins...and pin settings ?
(+ debug enabled... ! )
+
2024-07-12 10:15 PM
2024-07-12 11:22 PM
Good.
+ gen. code + compile : no errors/warnings ?
Then it should work.
+
you checked:
Sure about (2x green wire) DP+/- ? If puzzeled, it never works.
+
Connected...can see in system (Windows? -> ding dong or so) ?
2024-07-13 1:56 AM
Am not getting GPIO pins of USB in PCD_Msp_Init
2024-07-13 2:05 AM - edited 2024-07-13 2:06 AM
Forget it - i cannot find the usb pins also. But it works !
+
not answer my questions - so dont want help ?
2024-07-13 2:49 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.
Please see the attached file for more details.
2024-07-13 2:50 AM
Hi,
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.
Please see the attached file for more details.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.