USB MSC code, windows not able to access drive.

I am using the USB MSC code in my project. The project works fine and I am able to see the file system mounted and file being created in the logs. When I plug in the device into my laptop, I can see the device as a drive. However, when I click to access the drive, it asks me to format the drive and I am not able to view the contents of the drive. What might be causing this issue?

Parents
  • Hi

    When I plug in the device into my laptop

    What device is this exactly, is it the nRF52840 DK or an external board of some kind? 

    What did you do before this, did you just unplug the DK and plug the USB cable into the other USB port on the DK? You need to make sure that the file system is unmounted correctly so it doesn't have to format again when reconnected after a poweroff.

    Best regards,

    Simon

Reply
  • Hi

    When I plug in the device into my laptop

    What device is this exactly, is it the nRF52840 DK or an external board of some kind? 

    What did you do before this, did you just unplug the DK and plug the USB cable into the other USB port on the DK? You need to make sure that the file system is unmounted correctly so it doesn't have to format again when reconnected after a poweroff.

    Best regards,

    Simon

Children
Related