2012-05-26 08:08 AM
hi all
i try to work with usb host hs for msc. but no answer ! my program in this instruction looped : do { status = USBH_MSC_Read10(&USB_OTG_Core, buff, sector, 512*count); USBH_MSC_HandleBOTXfer(&USB_OTG_Core ,&USB_Host); if(!HCD_IsDeviceConnected(&USB_OTG_Core)) { return RES_ERROR; } } while(status == USBH_MSC_BUSY ); please help2012-05-31 06:39 PM
Are you using STM32F4DISCOVERY ?
Which is the Fw example you have started with ? Which is the USB disk connected to the board ? Is this disk working fine otherwise ?2012-06-03 09:05 AM
2012-09-10 01:00 AM
Hi, have you resolved this issue?
I am using the same code andUSBH_MSC_BOTXferParam.CmdStateMachine
is always0
(corresponding toCMD_UNINITIALIZED_STATE
), which makes it go through the default case inUSBH_MSC_Read10()
.2012-09-11 12:57 AM
This loop was there because the BOT state machine was not initialized.
I didUSBH_USR_Status USBH_USR_UserInput(
void
)
{
return
USBH_USR_RESP_OK;
}
This called the initialization code and it is no longer getting stuck inside the loop.