Nucleo G0B1RE as a Host USB CDC
Is it actually possible to configure a STM32G0B1 as a Host USB CDC to open a VCP? I have a STM32L476 configured as OTG USB device. The PC can open a VCP port and send some commands. Not problem with this. I'm wondering if I can use the G0B1 as a Host to communicate with the L476. The G0B1 has USB DRD drivers, and the L467 OTG drivers which should be pretty similar.
Basically see below the routine I'm following. In the user function I wait for this condition to happen -> if(Appli_state == APPLICATION_READY). But this condition never happens. It seems like the host does not open the port. I'm not an USB expert and I can't find Host CDC examples as guidance using the STM32G0B1, so it's hard to see what I'm doing wrong. Any help is appreciated.
HAL_Init();
SystemClock_Config();
MX_GPIO_Init();
MX_USB_Host_Init();
while (1)
{
MX_USB_HOST_Process();
userFunction();
}