USBH_MSC_Read10 读不到数据,while(status == USBH_MSC_BUSY ); 一直是BUSY状态, ......
仿真调试现象: 1、程序会死在disk_read()函数,进一步调试,发现disk_read()函数中调用的USBH_MSC_Read10()函数一直返回忙状态USBH_MSC_BUSY。 请教各位,什么情况下会出现USBH_MSC_Read10()一直返回USBH_MSC_BUSY,一般有哪几种情况。 诚心请教,望各位不吝赐教!拜托! 使用特权 评论回复 赏 点赞相关...
StatusTypeDef USBH_MSC_Read 里的while (USBH_MSC_RdWrProcess(phost, lun) == USBH_BUSY),U盘+...
MSC_HandleTypeDef *MSC_Handle=hUSBHost.pActiveClass->pData; if(USBH_MSC_Read(&hUSBHost,MSC_Handle->current_lun,sector,buff,count) ==USBH_OK) { res = RES_OK; }else { printf("U盘读取失败\r\n"); USBH_MSC_GetLUNInfo(&hUSBHost,MSC_Handle->current_lun, &info); switch (info....
Varies according to request, typically used to pass an index * or offset */ uint16_t wIndex; /** Number of bytes to transfer */ uint16_t wLength; } LIBUSB_PACKED; #if defined(_MSC_VER) || defined(__WATCOMC__) #pragma pack(pop) #endif #define LIBUSB_CONTROL_SETUP_SIZE (size...
* If this is an isochronous transfer, this field may read COMPLETED even * if there were errors in the frames. Use the * \ref libusb_iso_packet_descriptor::status "status" field in each packet * to determine if errors occurred. */ ...