UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
8,540 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
Scholar trenz-al
Scholar
8,535 Views
Registered: ‎11-09-2013

Re: Read Write to SD

Format

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

Re: Read Write to SD

Hi ,

 

I tried but I still have the same error.

 

Jo

0 Kudos
Highlighted
8,097 Views
Registered: ‎08-22-2015

Re: Read Write to SD

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