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
  • Hi,

     

    I see the exact same behavior. If you simply plug/unplug the USB, everything is fine.

    If you open the data, or do anything to the stored content (delete a file), it will fail with error "STA_NOINIT" (err_code = 1)

     

    This looks to come from nrf_block_dev_qspi.c::m_active_qspi_dev not being uninited properly after the drive has been altered. I'll report this internally as a bug.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    I see the exact same behavior. If you simply plug/unplug the USB, everything is fine.

    If you open the data, or do anything to the stored content (delete a file), it will fail with error "STA_NOINIT" (err_code = 1)

     

    This looks to come from nrf_block_dev_qspi.c::m_active_qspi_dev not being uninited properly after the drive has been altered. I'll report this internally as a bug.

     

    Kind regards,

    Håkon

Children
Related