USBH_Init & USBH_Exit

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • USBH_Init & USBH_Exit

      Hi,

      I don't understand why this simple code would not work properly :

      C Source Code

      1. void MainTask(void)
      2. {
      3. USBH_Init();
      4. USBH_Exit();
      5. }


      USBH_Exit() get stuck in a while loop in USBH_HW_STM32F2xxFS.c file in function static void _RemoveDriver(USBH_HC_HANDLE hHostController).
      It seems that the variable _RemoveComplete is never set to a value different from 0.

      For information:
      - embUSB-Host version: V1.16e
      - µC : STM32L476VG

      Thanks for your help,
      Nicolas