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

USBD connect/disconnect

Hi,

Is it possible to fool the system (via software) to perform a USB connect/disconnect as if it was physically connected and disconnected?

Parents Reply Children
  • I ended up using this suggestion and it solved the issue. Thanks.

    Hi.


    I had the almost the same issue. After any access to the files via the USB, the file system was demolished after internal flash access.
    I added additional logs to the SDK in QSPI module and it has shown me, that QSPI uninit function (block_dev_qspi_uninit), called after unplugging the USB, was busy (return with NRF_ERROR_BUSY).

    I add this code at the beggining of block_dev_qspi_uninit:


    if ((p_work->state != NRF_BLOCK_DEV_QSPI_STATE_IDLE))

    {

     wait_for_idle(p_qspi_dev);

    }


    It fixed the problem.

    Best regards
    Artur

Related