How to read a big file form SD card using FATFS?

Let's say I have a buffer uint8_t sdReadBuffer[100]; and ChaN's function f_read(&myFile, sdReadBuffer, sizeof(sdReadBuffer), bytesread); successfully reads 100bytes of data from the SDCard.

However, if 200 bytes of data is found in the file and I am not allowed to hold a 200byte sized buffer, how am I supposed to read the data using 100 byte frames?

I have looked at commands f_tell(&myFile), f_lseek(&myFile, f_size(&myFile)) but I could not do it the right way to read consecutive frames.

728x90

0 Answers How to read a big file form SD card using FATFS?