Loading...
 
Skip to main content

System Workbench for STM32


USB FS Host , MSC class not starting under FreeRTOS..

hi bernard,

yes, the scheduler is started in main() , and begins a startTask() wihch does the job of init of FAT FS , USB host etc, during which the log output is generated.

breakpointing around a little more last night I could see that in usb_core.c , the USBH_Process() is being called and progresses OK, USb attachement, enumeration etc as indicated in the logs, as far as reporting "MSC class started".

After this it keeps coming back to line 559 - if(status == USBH_OK) never resolves since it remains USBH_BUSY

case HOST_CLASS_REQUEST:
/* process class standard control requests state machine */
if(phost->pActiveClass != NULL)
{
status = phost->pActiveClass->Requests(phost);

if(status == USBH_OK)
{
phost->gState = HOST_CLASS;
}
}
else
{
phost->gState = HOST_ABORT_STATE;
USBH_ErrLog ("Invalid Class Driver.");

  1. if (USBH_USE_OS == 1)

osMessagePut ( phost->os_event, USBH_STATE_CHANGED_EVENT, 0);

  1. endif

}

break;

 
Collapse/expand modules below