2024-04-15 11:02 AM
Hello,
I am having trouble getting the USB peripheral recognized by the PC device manager. In Cube I have the USB FS device checked, and the USB_DEVICE middleware set to virtual COM port. Everything else is set to default.
The USB clock is set to 48MHz coming from the HSI48 source.
When the peripheral is connected to a PC (through a HUB) the device manager refreshes but the VCOM port does not show.
Thanks for the help.
Brian
2024-04-15 11:06 AM
Hi,
HSI as clk for USB might not be good enough.
Use HSE / crystal as source.
2024-04-15 11:15 AM
I changed from HSI48 to the PLLCLK at 48MHz without success. Here is the clock mapping for reference.
Thanks
2024-04-15 11:28 AM
How you set the gpio pins for USB port ?
should be : GPIO_SPEED_FREQ_HIGH;
2024-04-15 11:42 AM
GPIO are set to the default values, I don't see an option for GPIO_SPEED_FREQ_HIGH.
2024-04-15 11:44 AM
Check how you're wired up the USB connection to the F072. The ST-LINK one isn't connected to it.
2024-04-15 06:38 PM
Upload your IOC file and also a schematic of your USB connector/breakout board connection to the Nucleo board pins.
2024-04-16 04:39 AM
2024-04-16 06:26 AM
I did notice that on the nucleo board I am using X3 is not installed, this looks like the source for the HSE clock. That would explain why when I switch from HSI to HSE it still didn't work.
2024-04-16 08:31 AM
The STM32F072 was designed to run with the internal 48MHz clock so that is why it doesn't have the external crystal.
Google for "Device Descriptor Request (Code 43)". There could be a number of issues including a connection issue. Not sure how you've connected a USB connector to the Nucleo? Pictures, diagram?
I just tested with the STM32F072-Disco using the same Firmware package version 1.11.4 that you used and it works on my board.
I'd take a look at the STM32F072-Disco diagram to see how they connected the USB connector to the MCU pins?