Hi, can any one plz help me to solve fatfs read problem?
I am using Cortex-M3 luminary lm3s6965 controller. My application is such that I am writing 100-150k data(1024 bytes at a time; i.e. using for loop), in single .csv file, in 4GB micro SD card using fat16. and it is working perferctly.
Bt when I am trying to read data from sd card(1024 bytes at a time), then it will read data upto 65535 bytes and then it gets hang.
So can i read complete 100-150k data from sd card.
Could any body help? Thanks in advance...
Would check/instrument the DISKIO.C abstraction code, make sure there weren't any issues there with memory regions, DMA transfer limits, etc. And evaluate if larger transfers passed down needed to be decomposed further, or where the issue is coming from.
My guess would be it's not FatFs, so focus on validating your SD card code, perhaps externally from FatFs.
ST used 32-bit BYTE OFFSET addressing, which has obvious limits when dealing with 4GB+ BLOCK addressed devices.