Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Hot plugging USB not working #59

Open
vintagepc opened this issue Mar 25, 2021 · 1 comment
Open

[BUG] Hot plugging USB not working #59

vintagepc opened this issue Mar 25, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@vintagepc
Copy link
Owner

Describe the bug
Hotplugging a USB drive is reported not to work (bbf/bootloader). Look into this.

@vintagepc vintagepc added the bug Something isn't working label Mar 25, 2021
@vintagepc
Copy link
Owner Author

vintagepc commented Apr 4, 2021

This is weird... it works fine if you debug and step through.

Problem seems to be in this area, the lockup happens during USBH_Delay, which calls HAL_Delay.

      USBH_UsrLog("USB Device Connected");

        /* Wait for 200 ms after connection */
        phost->gState = HOST_DEV_WAIT_FOR_ATTACHMENT;
        USBH_Delay(200U);
        USBH_LL_ResetPort(phost);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant