I'm trying to create a webserver with the Ethernet/SD shield. THe web part is working fine, but when I try to add code to my project for the SD card everything hangs. Using the example SD code it seems to initialize only some of the time (seems sporadic) - Yes, I changed the correct CS pin - I am using pins 3 and 8 in the project - I was using 2 but saw something about that being tied to an interupt so I moved it to 3 - still the same problem
Is there something I need to know to use both the Ethernet function and the SD functions together.
Oh, and as a test I used the SD example code to access the SD card (without any ethernet functions enabled) and things worked fine - so I assume the card is ok
any ideas ?
thanks.....Matt.
Ethernet Shield and SD card
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88087
- Joined: Sat Feb 07, 2009 10:11 am
Re: Ethernet Shield and SD card
Does the code from the Arduino Ethernet+SD tutorial work?
- mattganis
- Posts: 13
- Joined: Fri Sep 03, 2010 2:51 pm
Re: Ethernet Shield and SD card
I didn't try it before I posted - so I tried it.
I installed the SDFatlib (20110902) and then took the code from https://github.com/adafruit/SDWebBrowse
I got some errors compiling so I added an #include <SPI.h> and got a clean compile, but I get:
Free RAM: 963
error: card.init failed!
SD error: 1,0
-Matt
I installed the SDFatlib (20110902) and then took the code from https://github.com/adafruit/SDWebBrowse
I got some errors compiling so I added an #include <SPI.h> and got a clean compile, but I get:
Free RAM: 963
error: card.init failed!
SD error: 1,0
-Matt
- adafruit_support_bill
- Posts: 88087
- Joined: Sat Feb 07, 2009 10:11 am
Re: Ethernet Shield and SD card
Make sure you don't have a conflict between the SD libraries: http://forums.adafruit.com/viewtopic.ph ... 1&p=123706
Please be positive and constructive with your questions and comments.