Team, I really need help as this is driving me nuts and do not know where is the issue. I'm building an application with Arduino, I have 2 files The first one is the configuration file I should read and update when config changes The second one is a swap file to handle text I receive from a modem.
The program does this: 1) open config file and read 2) wait for modem to start 3) gather the list of messages and save them in the swap file 4) ....
Both files are opened and closed every time. The swap file is deleted if exists before being opened
Now: 1) always work, file is read correctly 3) always fails!
I tried to change SD card, to change library from SD to SDFat, to change code and order, to use 2 different file handles to avoid conflicts...
but no way! Once every 100000000 times 3 works :( and saves the file (thus it makes me think is not an issue on the code)
Can you help me?
Note to leave more power to Arduino Serial is at 4800 and AltSerial is at 2400 (so they should not impact all the rest)
Connection between SD shield and Arduino Pro Mini is on 10-11-12-13 as per design