Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

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;