I am new to STM32 development, I want to connect a sensor to my Nucleo-64 board. This sensor shows up on PC as 2 virtual com-port over single physical USB device. I want to detect both these com-ports on my nucleo-64 board.
My setup;
Enabled USB_OTG_FS and VBUS
USB_HOST(Supporting All Classes) is set to Host_Only
Here is my pin configuration
Here is the clock configuration
When I run the auto generated code, this is what the debug prints
USB: Device Connected (HOST_USER_CONNECTION)
USB: Unknown Event (HOST_USER_UNRECOVERED_ERROR)
USB: Device Connected (HOST_USER_CONNECTION)
USB: Unknown Event (HOST_USER_UNRECOVERED_ERROR).....
As mentioned here, link
I tried swapping the D+ and D- pins, and this is what the debug prints,
USB: Device Connected
USB: Unknown Event
USB: Device Connected (i.e HOST_USER_CONNECTION)
USB: Device Disconnected (i.e HOST_USER_DISCONNECTION)
USB: Device Connected (i.e HOST_USER_CONNECTION)
USB: Unknown Event (i.e HOST_USER_UNRECOVERED_ERROR)
USB: Device Connected (i.e HOST_USER_CONNECTION)
USB: Device Disconnected (i.e HOST_USER_DISCONNECTION)
Could someone please help me solve this issue.
The sensor is self-powered.

