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

    The .size should indeed be 524288. I think the workbuffer size and block size should be set in the external flash data sheet. The formatting still seems to fail for some reason, which could be the workbuffer being incorrect. But can you try recreating this on an nRF52840 DK if you have one available? 

    Worth noting that the MSC example project does not support multiple users accessing the flash device at the same time, this is a limitation in the specification if you're trying to do that.

    Best regards,

    Simon

  • On the development kit I have tried testing using the sdk sample code and it works fine with the flash chip on dev kit. I am not sure why it is not working on my custom board. I am accessing the drive only through 1 user.

    You said "The formatting still seems to fail for some reason, which could be the workbuffer being incorrect." Where did you see that?? In the logs it does format and creates a new file again.

Reply
  • On the development kit I have tried testing using the sdk sample code and it works fine with the flash chip on dev kit. I am not sure why it is not working on my custom board. I am accessing the drive only through 1 user.

    You said "The formatting still seems to fail for some reason, which could be the workbuffer being incorrect." Where did you see that?? In the logs it does format and creates a new file again.

Children
No Data
Related