cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
helplessguy
Adventurer
Adventurer
985 Views
Registered: ‎09-18-2018

Read txt-file from FAT32 SD card barmetal

Hello everyone,

I am having a SD Card, that is connected to MIO 40-45 at PS of Zynq, speed: slow, pullup: disabled). I have the Zybo Z7-20 evaluation board.

On the SD-Card (FAT32) is a textfile test.txt and there are numbers inside, that I want to load to memory.

I was looking now the last weeks for solutions/examples, but I didn't find something helpful.

 

I am also not sure, that library is really helpful, and if there is some example code existing.

Is a reading with fopen/fclose and getc possible, or not?

 

be gladful about all answers!

0 Kudos
1 Reply
savula
Moderator
Moderator
943 Views
Registered: ‎10-30-2017

Hi @helplessguy ,

 

Please check the Xilffs polled mode example. This examples opens a file in SD card and Read/writes the data into the file.

https://github.com/Xilinx/embeddedsw/blob/master/lib/sw_services/xilffs/examples/xilffs_polled_example.c

 

Best Regards,
Srikanth
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.