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.

CC2640R2F: Appending data to a text file using SPIFFS.

Part Number: CC2640R2F


Hi all,

I'm attempting to do data-logging using SPIFFS system with an external Flash memory.

I started with the example SPIFFexternal from the SDK, but the example does not include appending data to an existing file. 

I'm aware of SPIFFS_APPEND constant in the spiffs.h file and therefore I'm sure it is possible, but when trying to open the file such as:

fd = SPIFFS_open(&fs, "dataFile", SPIFFS_APPEND, 0); I get an error when writing to the file. 

What am I doing wrong?

Best regards,

Miro