PeterH:
guilherme_ebio:
when i put the codes and save changes to the SD cardCan you explain exactly what this means?
Yes, a use the Ethernet to browse the files on the SD card, and see the files, and i use an keyboard and some info to save the data to the SD card, like the date and the sector chosen, etc, so when a start the arduino i can see the files and browse then, but after a used the keyboard to save new data on the SD the error occurs, it's not all the time but it happens a lot.
Thanks.
And,
SurferTim:
Is this an Uno or Mega? I just took a look at your entire code.You sure are using a lot of SRAM with those constant strings. Maybe you are running out of SRAM? 8K in the Mega, and 2K in the Uno. The Ethernet and SD libraries takes a bunch of that.
You never see this?Serial.print("RAM Livre: ");
Serial.println(freeRam());
You should use the "F" function to user those strings from program memory rather than transferring it into SRAM.Serial.println("This string is transferred to SRAM before printing");
Serial.println(F("This string is printed from program memory"));
Yes, i see, i still got almost 4k of SRAM when the error occurs, but of course i will change all of then to F.
Thanks a lot for the advise.