利用官方库一直HOST读写U盘采用的FS模式,实验了三个u盘,两个4G的正常,8G的就死在了USBH_MSC_HandleBOTXfer函数里,
以下是打印的日志
> USB Host library started.
> Device Attached
> Full speed device detected
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
> Mass storage device connected
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
Manufacturer : KINGSTON
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
Product : DT 101 G2
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
Serial Number : 001CC0C60DA8AC91232725F8
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
> Enumeration completed
>HOST_USR_INPUT
>HOST_CLASS_REQUEST
>USBH_MSC_BOT_INIT_STATE
>USBH_MSC_BOT_RESET
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>USBH_MSC_BOT_RESET
>USBH_MSC_BOT_RESET:OK
>USBH_MSC_GET_MAX_LUN
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>HOST_CTRL_XFER
>USBH_MSC_GET_MAX_LUN
>USBH_MSC_GET_MAX_LUN:OK
>USBH_MSC_TEST_UNIT_READY
>USBH_MSC_TEST_UNIT_READY:ERR
>USBH_MSC_TEST_UNIT_READY:USBH_MSC_BUSY
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_SEND_CBW
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_SENT_CBW
>USBH_MSC_SENT_CBW:OK
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_RECEIVE_CSW_STATE
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
>USBH_MSC_BOT_USB_TRANSFERS
>USBH_MSC_DECODE_CSW
>USBH_MSC_DECODE_CSW:0
|