Hi,
Has anyone come across the problem when if you are reading a long string off an SD card it causes the arduino to reset from the beginning of void loop()?
Any advice would be nice
Thanks
Hi,
Has anyone come across the problem when if you are reading a long string off an SD card it causes the arduino to reset from the beginning of void loop()?
Any advice would be nice
Thanks
Has anyone come across the problem when if you are reading a long string off an SD card it causes the arduino to reset from the beginning of void loop()?
That seems highly unlikely. Resetting, and rerunning setup(), then starting to loop again is more likely.
Any advice would be nice
Well, there's the usual. Post your code.
Hi Paul
I found the problem, what it would do was begin from setup again, hang on the ethernet begin and stop. The problem was when it ran out of memory as I was having it print the string which was pretty long. As soon as I removed the print everything worked.
Try looking up the F macro and printing from PROGMEM.
eg.
Serial.println (F("Hello, world"));
Thanks Nick
but I was just printing a massively long string for debugging over serial.