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.

CCS/TM4C123GH6PM: SD Card overwrites previous data written

Part Number: TM4C123GH6PM

Tool/software: Code Composer Studio

Hi all,

I am currently trying to make a stable communication between my Tiva TM4C123GH6PM and a SD Card. I need it because I want to save data from a variety of sensors in a single line in a text file continuously.

I am able to create and write some data in the text file, but only once, because everytime the program remounts it, it seems like the position of the cursor of the text file resets, and the data gets overwritten.

Is there a way to save the position of the cursor even when the file is closed and dismounted? Or is there a way to write in the text file without needing to close and dismount it?

I am putting my program here for better analysis of the situation. Currently using the mmc-dk-tm4c123g.c examples to help.

Regards,

Álvaro.

S20_microSD_Testes.rar