USB FS Support
I am working on OTG FS application on stm32f769 discovery board, as per the it's schematic for OTG_FS VBUS power supply will be taken care by External Phy(see below image).

So as per that I configure the STMCUBE IDE, and i disabled the VBUS_Sensing also. and started the debug process. I noticed that it is getting failed. Inside this USBH_Process in 1st switch case i.e. HOST_IDLE case there is one if condition, that is getting failed.
USBH_StatusTypeDef USBH_Process(USBH_HandleTypeDef *phost)
{
__IO USBH_StatusTypeDef status = USBH_FAIL;
uint8_t idx = 0U;
printf("inside usbh process\n");
/* check for Host pending port disconnect event */
if (phost->device.is_disconnected == 1U)
{
phost->gState = HOST_DEV_DISCONNECTED;
}
switch (phost->gState)
{
case HOST_IDLE :
if ((phost->device.is_connected) != 0U)
{
printf("USB Device Connected");
/* Wait for 200 ms after connection */
phost->gState = HOST_DEV_WAIT_FOR_ATTACHMENT;
USBH_Delay(200U);
(void)USBH_LL_ResetPort(phost);
/* Make sure to start with Default address */
phost->device.address = USBH_ADDRESS_DEFAULT;
phost->Timeout = 0U;
#if (USBH_USE_OS == 1U)
phost->os_msg = (uint32_t)USBH_PORT_EVENT;
#if (osCMSIS < 0x20000U)
(void)osMessagePut(phost->os_event, phost->os_msg, 0U);
#else
(void)osMessageQueuePut(phost->os_event, &phost->os_msg, 0U, 0U);
#endif
#endif
}
break;
Is it related to VBUS ? even i tried by enabling Vbus_Sensing and kept the PA9 gpio which enabled automatically after enabling VBUS sensing still same issue. Can anybody tell me anything am missing here.
Regards,
Shikamaru
