Application Freezes when USB is connected
I am using a STM32F746NG which I am attempting to use the STM32_USB_Host_Library. I am able to initialise and start the process fine, but as soon as I connect a USB device to the port the program freezes.
I am unsure if the issue is to do with the configuration of the "STM32_USB_Host_Library" or if the issue is to do with the configuration of "STM32F7xx_HAL_Driver". I have found however that the application won't freeze if I comment out the following line from "stm32f7xx_ll_usb.c" (Although then the app won't work)
HAL_StatusTypeDef USB_EnableGlobalInt(USB_OTG_GlobalTypeDef *USBx)
{
//DISABLING THIS LINE STOPS FREEZING
USBx->GAHBCFG |= USB_OTG_GAHBCFG_GINT;
return HAL_OK;
}Does anyone know why this may happen? Or where the kind of area to look for what happens when the USB connects to see if I can track down further what the actual issue is.
Thanks in advance
