stm32g0b1 usb host (MSC) flash drive not working
I have a STM32G0B1VET on a test board and tried to use its USB host function to connect a flash drive. It just stuck at the function of "USBH_MSC_SCSI_Inquiry" in file "usbh_msc_scsi.c". It can't pass the state of below:
case BOT_CMD_WAIT:
error = USBH_MSC_BOT_Process(phost, lun);
where the error returns "USBH_BUSY".
- I have tried to increase the stack and heap to 0x2000. And I tried several different flash drives (500MB to 16GB). The same thing happened.
- I have measured the 48Mhz signal which is good.
- I have tried putting 30 Ohm resistors on the DP and DM line.
- I have tried using GPIO pin to control the 5V line for flash drive.
- I have tried using 3.3V for flash drive.
Does anybody have an idea what's wrong? Any successful case? Thanks.
