SDFAT.h lib causes restarts

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
asleepinverona
 
Posts: 16
Joined: Mon Nov 01, 2010 4:02 pm

SDFAT.h lib causes restarts

Post by asleepinverona »

Hi!

I'm having some issues when printing to an SD card. It seems that if I am trying to print large amounts of data (obviously not a good idea, but required here) the Arduino either restarts or simply won't run.

I was using a lot of println statements to print to the files. I switched most of them to print statements and that seemed to fix the issue, only for a little while.

Is there a healthy method of adding large amounts of data to a file? I've tried using some delay statements to catch things up a bit, but that didn't seem to work.

Thanks!

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: SDFAT.h lib causes restarts

Post by adafruit_support_bill »

It is possible that you are running out of memory. That can cause erratic behavior, including restarts. Have a look at this thread: http://forums.adafruit.com/viewtopic.php?f=8&t=20309

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”