ST32F429 two usb host problem
Hello All and thank you in advanced
I have a pplication that we use two host usb connected to flash disks , one uses PORTA usb and other uses PORT B usb .
i have test every usb seperatlly with file system after modifie usb_diskio and all work with no problems
but when I use together and same time only one host work !
I have been debuging and testing for 4 days and no result , could you guide me to find the problem please .
if((FATFS_LinkDriver(&USBH_Driver, USBDISKPath) == 0) && (FATFS_LinkDriver(&USBH_Driver1, USBDISKPath_1) == 0))
{
// /*##-2- Init Host Library ################################################*/
// USBH_Init(&hUSB_Host, USBH_UserProcess, 0);
//
// /*##-3- Add Supported Class ##############################################*/
// USBH_RegisterClass(&hUSB_Host, USBH_MSC_CLASS);
//
// /*##-4- Start Host Process ###############################################*/
// USBH_Start(&hUSB_Host);
/*##-2- Init Host Library ################################################*/
USBH_Init(&hUSB_Host1, USBH_UserProcess, 0);
/*##-3- Add Supported Class ##############################################*/
USBH_RegisterClass(&hUSB_Host1, USBH_MSC_CLASS);
/*##-4- Start Host Process ###############################################*/
USBH_Start(&hUSB_Host1);
}
while(1)
{
USBH_Process(&hUSB_Host1);
USBH_Process(&hUSB_Host);
}
//-------------------------
only host hUSB_Host1 work and the hUSB_Host stile ideal state
what could be the problem here please ?
Thank you