searching for SAMD21 XPRO FATFS ASF4 project / example

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

I've used FATFS on the SAME54 XPRO, but now I'd like it on the SAMD21 XPRO board.  I was surprised to find that there isn't an Atmel START example project for that.

 

The best I've found so far is an ASF3 example that uses FATFS v 0.09.  I tested it and it works, but integrating that into my ASF4 project would be difficult.   And despite a number of google searches, I've not been able to find any good starting points.  (Perhaps I'm using the wrong keywords??)

 

So: isn't there some FATFS example out there for the SAMD21 XPRO?  

- rdp

 

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

fearless_fool wrote:
integrating that into my ASF4 project would be difficult

how so?

 

https://community.atmel.com/comm...

 

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...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Touche:  I've started to go down the path of using the code from Arduino-land. 

 

But it would seem reasonable that *someone* has (for example) connected an IO1 XPRO board to a SAMD21 XPRO board.  All I really need is the sdmmc.c file to interface between the fatfs code and the SAMD21.

 

As for the difficulty of integrating the ASF3 example into an ASF4 framework, I mis-spoke: the example I found was for writing to USB, not to an SD card via SPI. 

 

I'll keep digging.

- rdp