仿真调试现象: 1、程序会死在disk_read()函数,进一步调试,发现disk_read()函数中调用的USBH_MSC_Read10()函数一直返回忙状态USBH_MSC_BUSY。 请教各位,什么情况下会出现USBH_MSC_Read10()一直返回USBH_MSC_BUSY,一般有哪几种情况。 诚心请教,望各位不吝赐教!拜托! 使用特权 评论回复 赏 点赞相关...
21、换为SCSI命令:READ(10) or WRITE(10)。这些命令“Bulk-Only Tranport” 协议传输到u盘。BOT层状态机是关于使用必要的USB内核I / O请求模块进行大批量输入输出传输。MSC模块描述如下。MSC内核模块:MSC内核模块在“usb_msc_core.c”实现MSC驱动,它通过usbh_class_cb_typedef定义msc_cbof结构类型(见2.3节)...
KEIL-MUC选择405,读盘一直死在USBH_StatusTypeDef USBH_MSC_Read 里的while (USBH_MSC_RdWrProcess(...
status = USBH_MSC_Read(&hUSBHost, pdrv, sector + count, (uint8_t*)scratch,1);if(status == USBH_OK) {memcpy(&buff[count * _MAX_SS], scratch, _MAX_SS); }else{break; } } }else{ status = USBH_MSC_Read(&hUSBHost, pdrv, sector, buff, count); }if(status == USBH_OK...
STM32F105/7USB主模式协议栈的库支持以下两个USB标准应用类:■大批量存储类(MSC)访问USB闪存pendrives ■人机接口设备(HID)键盘和鼠标设备1 USB的主模式包文件夹结构。62?USB主模式的库8 2.1库结构框图8 2.2库内核描述。9 2.2.1内核状态机。9 2.2.2设备枚举。10 2.2.3控制传输状态机。11 2.2.4?USB的I...
该项目是为全志 F1C100S/F1C200S 所编写的库函数,编写风格模仿 STM32 标准库,使得从 STM32 过来的人更容易上手。项目已经移植了 cherryusb、fatfs、lvgl、rt-thread。 - f1c200s_library/hardware/src/usbh_msc_config.c at 89b681080fc5ffb3a1ae60d554c3b994caa838df ·
DRESULT USBH_read(BYTE *buff, DWORD sector, UINT count) { DRESULT res = RES_ERROR; MSC_LUNTypeDef info; MSC_HandleTypeDef *MSC_Handle=hUSBHost.pActiveClass->pData; if(USBH_MSC_Read(&hUSBHost,MSC_Handle->current_lun,sector,buff,count) ...
#if defined(_MSC_VER) && (_MSC_VER < 1600) && (!defined(_STDINT)) && (!defined(_STDINT_H)) typedef unsigned __int8 uint8_t; typedef unsigned __int16 uint16_t; typedef unsigned __int32 uint32_t; #else #include <stdint.h> #endif /* On linux PATH_MAX is defined in...
Revision 1.63 (03-30-07) Page 24 SMSC USB20H04 DATASHEET 4-Port USB 2.0 Controller Datasheet 8.4.1.1 SMBus Configuration Timing SCK/SCL t1 t2 t3 t4 RESET_N GND Hardware Reset Asserted CS/EE_SEL & SMB_SEL_N strapping options read First External SCK/SCL Activity Configuration Finished ...
I'm building a USB MSC subsystem. To initiate the enumeration, I call: USBD_API->hw->Connect(g_hUsb, 1); If the Host is present, I enumerate and all is well. But what if the Host is not present / not connected? Does the USB Library (LPC11U68) provid...