05-23-2016 09:51 AM
i have a software in Vivado SDK that read and write data float to/from SD Card using FatFs library.
Now i want to read/write 1,6 MBytes from an existing binary file(1.6 Mbytes is also the file size) but if i use this value in fread, i have disk error return value and debugging the code i can see the last value of "br"(number of bytes read) before the error is 196608. Infact, if i use this this value in the number of bytes to read field of fread, i haven't problem but no all the data are read.
So, how much data can be read in one shot?