SAMD21 USB MSC Device + SD Card

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

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.

 

 

Last Edited: Fri. Nov 10, 2017 - 03:11 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Duplicate: https://www.avrfreaks.net/comment...

 

Probably better asking in the Cortex-M forums ...

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...