"usb device not recognized" STM32G0B1ME
Hello everyone,
I’m trying to activate the USB module present on my custom board equipped with the STM32G0B1ME microcontroller. Currently, I would like to see data transfer from a PC serial terminal to the microcontroller. Unfortunately, this is not happening at the moment, as upon powering on the device I receive "USB device not recognized."
The hardware is as follows (USB Type-C):


Unfortunately, I did not design it, and I currently cannot modify it.
The firmware configuration is as follows:



with USB, UCPD1 and UCPD2 global interrupts enabled.
In the main, I simply have:
#include "usbd_cdc_if.h"
...
MX_USB_Device_Init();
...
uint8_t *data = "Hello World from USB CDC\n";
...
while (1) {
...
CDC_Transmit_FS(data, strlen(data));
HAL_Delay(1000);
}
But... "USB device not recognized".
I have verified that the drivers are correct because if I follow the same procedure with the STM32G0B1RE Nucleo board, it works...
Thanks for help!
