This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

USBD_MSD Disk initialization fails in USB unplug with SDK15.0

After unplugging the USB, disk initialization fails in usbd_user_ev_handler function function (case: APP_USBD_EVT_STOPPED). If I connect and disconnect a second time, it works.

Parents Reply
  • Without having dug deep into this issue, I suspect the issue is more of a unhandled corner-case between the QSPI and USB handling. For some reason, the qspi_uninit does not successfully execute if you alter the USB drive, which is a good indication that the issue is not purely USB or QSPI, but a combination of the two. Disconnecting the D+/D- pull-resistors is not likely to un-init the QSPI after this has occurred.

     

    Cheers,

    Håkon

Children
Related