This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Power Fail and FAT FS file I/O



Hello,

H/w and S/w Configurations

H/W: TM4C12XNCZAD based custom board.

S/W: TI-RTOS - 2.14,

SYS/BIOS 6.42, 

TI 5.2.5 Compiler,

xdctools_3_31_01_33

We are developing a TM4C12XNCZAD based custom board.  It supports both USB and SD Card.  The SD card is used for logging data. USB is basically used for transferring log data from SD Card. We are having power backup using a supercap (will support only for a minute). We are saving the required system data into an external EEPROM on power fail.  

My questions are

When we are writing to SD card and power failure happens,

1. is it possible to write to SD Card with Super cap support

2. is it possible to safely exit from an write operation  currently in progress (using file operation calls , fopen, fclose, fwrite) and to  call fclose to safely close the file  and umount SD card

Thanks in Advance

Narendra