DataLogger
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 2
- Joined: Sat Sep 24, 2011 2:25 pm
DataLogger
There seems to be a problem with the DataLogger when the instruction myFile = SD.open("test.txt") is used in a program where also Serial.println() is used, depending on the position of the instruction Serial.println() The arduino hangs. Any ideas?
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: DataLogger
What position would that be? Can you post code to reproduce the problem?depending on the position of the instruction Serial.println() The arduino hangs.
-
- Posts: 2
- Joined: Sat Sep 24, 2011 2:25 pm
Re: DataLogger
Solved the problem. I was printing many text messages and ran out of RAM. The code from the link bellow was very helpful at debugging the memory allocation:
http://www.faludi.com/itp/arduino/Ardui ... M_Test.pde
I am now saving the text of the messages to EEPROM and now everything works fine. The code that I am using is a modification of Arrays of Strings from:
http://www.arduino.cc/en/Reference/PROGMEM
Thank you
http://www.faludi.com/itp/arduino/Ardui ... M_Test.pde
I am now saving the text of the messages to EEPROM and now everything works fine. The code that I am using is a modification of Arrays of Strings from:
http://www.arduino.cc/en/Reference/PROGMEM
Thank you
Please be positive and constructive with your questions and comments.