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
  • The USBH and ISR tasks have to be present for exit to work.
    Furthermore exit had a couple of issues when used with the ST drivers in V1.16. This was fixed in V1.30b.
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.