ATxMEGA + FatFS + SDcard reading/writing

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

Hello People, I'm starting with AVR xMEGA boards,

 

I'm interfacing with XMEGA-A3BU Xplained http://www.atmel.com/images/doc8394.pdf and an SD Card module https://s-media-cache-ak0.pinimg.com/originals/01/ca/fb/01cafb38b6afcd237f83194c71682199.jpg

 

I want to make a simple program that could write a text file, maybe a simple file on the SD card module connected to J1. And in that way I could check in the computer for the outputs in the SD Card in computer.

 

I was looking some examples in AS7 software, there's a FatFS library that could do this and I was trying to make it work the FATFS_ACCESS_EXAMPLE1, but when I tested my board is doesn't recognize by the computer, so I want to understand how it works the FatFS library and how to code with it, because my main program is just to write those files on the SD card. There's a way to do it?

 

To read what I have in the SD Card and write things in the SD Card?

Is there some examples to achieve what I want?

 

Sorry for being a novice yet, It would be helpful any reply.

 

Regards

 

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

Anybody?

 

 

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

 

I find 140 links when I search AVR Freaks for "xmega fatfs".  How many of these have you read?

 

 

 

edit: typo

Greg Muth

Portland, OR, US

Xplained Boards mostly

Atmel Studio 7.0 on Windows 10

 

Last Edited: Sun. May 14, 2017 - 06:38 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I found this github https://github.com/pichenettes/avrilx/blob/master/README from this thread http://www.avrfreaks.net/forum/solved-micro-sd-card-interface-spi-elm-chans-fatfs?skey=xmega%20fatfs

 

I will try to play with this one, is collection of peripheral drivers for the xMEGA family.

 

What I will need to know now is, how to include the required libraries to the project in AS7 (Because I'm beginner), how to use the Macro to configure SPI and how to use mmc.c file!