SAMD21 USB MSC Device + SD Card

1 post / 0 new
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


I am trying to implement the USB MSC Device stack + SD Card on a SAMD21J17A board so that when the board with the 2GB microSD is connected to a PC (Host) using a USB Cable, I can directly access the files on the SD card.

I started with the USB MSC Device example and made some clock and pin changes.

When I run the program, the USB attaches to the host and the device is also displayed in the Device Manager under Universal Serial Bus Controllers as a Mass Storage Device.

But it takes a very long time to show up in available drives and gives the error "Please insert disc" when opened.

Any help is appreciated. Thank you.