Hi there,
I'm developing with a EKS-LM4F232H5QD board. I'm trying to use the included SD card drivers to log data as my controller goes in and out of hibernation. I'd like to append data to the end of the file every time the controller wakes from hibernation. Ideally, I'd use f_lseek function (described in this api: http://elm-chan.org/fsw/ff/00index_e.html) to seek to the end of the file like:
//work area (file system object) for logical drivers
FATFS g_sFatFs;
//file object
FIL fileObject;
f_lseek(fileObject, f_size(fileObject));
The software included with my board/Stellaris does not include the f_size function call, however. Would a call like sizeof(fileObject) do the trick instead of the f_size function? I've thought of just saving the total bytes I've written to the file into EEPROM before I hibernate, and updating that value every time I write to the card. Is there a better way to be doing all this? Thanks!
-David