cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jordanairbusds
Adventurer
Adventurer
8,908 Views
Registered: ‎04-07-2015

Read Write to SD

Hi all,

 

I work with a Zedboard and I would like read and write in file to SD card. I use the FatFs library (the library used on the FSBL) but I can't mount the SD card :

rc = f_mount(&fatfs, "0:/", 1)

I have the error code 13 : Not valide FAT volume

 

Someone can help me please ?

 

Thanks

Jo

0 Kudos
3 Replies
trenz-al
Scholar
Scholar
8,903 Views
Registered: ‎11-09-2013

Format

0 Kudos
jordanairbusds
Adventurer
Adventurer
8,879 Views
Registered: ‎04-07-2015

Hi ,

 

I tried but I still have the same error.

 

Jo

0 Kudos
embeddedcentric
Visitor
Visitor
8,465 Views
Registered: ‎08-22-2015

Are you using standalone or linux ? In any case, make sure that the settings in Vivado for the SDO is as in the picture attached. 
You can find a compete tutorial on how to use the SD card of Zedboard on the link below. Download the Vivado project at the end of the page and make sure that the hardware configuration for the SD0 is identical to yours. Also chck the .c file to see the proper use of APIs.

 

Link: http://embeddedcentric.com/data-logging-using-sd-cards/

 

 

EmbeddedCentric.com 

 

MIO Configration for SD0.jpg
0 Kudos