2022-10-23 04:56 AM
I have connected a turned off android phone to the stm32 USB port.
Device gets enumerated as a msc device.
Enumeration output
USB Device Connected
USB Device Reset Completed
PID: 2eb7h
VID: 22b8h
Address (#1) assigned.
Manufacturer : motorola
Product : moto g(9) play
Serial Number : ZY3282Q2V5
Enumeration done.
This device has only 1 configuration.
Default configuration set.
Switching to Interface (#0)
Class : 8h
SubClass : 6h
Protocol : 50h
MSC class started.
Number of supported LUN: 1
LUN #0:
Inquiry Vendor : Linux
Inquiry Product : File-Stor Gadget
Inquiry Version : 0419
Sense Key : 2
Additional Sense Code : 3a
Additional Sense Code Qualifier: 0
Sense Key : 2
Additional Sense Code : 3a
Additional Sense Code Qualifier: 0
ERROR: USB Disk is not ready!
device gets enumerated as a MSC Device
Why the device is not ready and there is no checking of the readiness of the USB MSC in activating this class in the line of 528 of usbh_msc.c ?
phost->pUser(phost, HOST_USER_CLASS_ACTIVE);
#USB #STM32F7 #[STM32 MCUs]