IO1 Xplained Pro microSD example code ASF

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

I have purchased the Atmel Sam4S Xplained Pro kit.  Been trying to use the quick start code to communicate with the IO1 board supplied microSD card.  Have discovered the included code in the example is for communications to the SD memory card, not the microSD.  The User guide for the I/O1 board, under heading "4.3.4. micro SD Card Connector" states "Examples on how to use microSD cards and an example SD card stack can be found through ASF".  Searching ASF and this forum turns up no additional information or examples.  Where is the microSD example?  Has anyone successfully interfaced to the supplied microSD on the I/O1 board?

Thanks,

Mark

The great thing about multitasking is that several things can go wrong at once..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'll have to take a look at the ASF library. If I remember correctly, when you add the SD/MMC library there is a setting to choose SPI or MCI. The SD card on the back of the xplained pro uses  High Speed Multimedia Card Interface (HSMCI) where as the I/01 boards uses SPI. I'll need to check when I get home.

"When all else fails, read the directions"

Last Edited: Thu. Jul 6, 2017 - 02:23 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I spent a little time this evening looking at the SD/MMC library for the SAM4S. The library looks like its exactly the same as the one for the SAMD21, which I have working (on the SAMD21). The way ASF works for the xplained boards is to use defines to configure the library for that board. Its a bit of a snake pit to figure out whats going on. I created a project and added all the required modules.  The init and config files generated by ASF are different then that of the SAMD21 example SD card project, so it will take some time to see whats going on.

If I have time, I try to see whats going on.

"When all else fails, read the directions"

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, the Atmel-42078-IO1-Xplained-Pro_User-Guide states that the microSD card uses SPI comms.  I'mm still searching for the "Examples on how to use microSD cards and an example SD card stack can be found through ASF".  I don't see the point in reinventing the wheel for this if there are already example code to leverage.

Thanks!

 

Mark

The great thing about multitasking is that several things can go wrong at once..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Guess this one goes in the UNANSWERED pile!

The great thing about multitasking is that several things can go wrong at once..