I tried to use the examples provided by Sparkfun but i keep running in to the same errors, which i have nailed down to initializing the SD Card (I'm using the SdFat).
To nail down the core issue i tried running the "SdInfo" example from the SdFat library. This is my output:
SdFat version: 20111205
type any character to start
card.init failed
SD errorCode: 0X1
SD errorData: 0X0
If i change SS_PIN from 9 to 10 in Sd2PinMap.h per Sparkfun instructions (http://www.sparkfun.com/tutorials/295) the sdcard.init(...) method just hangs.
I think the issue is because of a conflict between the W5100 ethernet chip and the MP3 player shield.
I got the ethernet working seperately, and i can play an MP3 file stored in the RAM without any problems.
Is there any conflicting ports that i am unaware of? Or do i need to disable the W5100 chip?
I tried disabled the MP3 decoder by setting pin 6 (MP3_XDS) and 7 (MP3_DREQ) high and pin 8 (MP3_RESET) low. I disabled the W5100 ethernet chip by setting pin 10 high (The chip select pin) I'm initializing the SD card with pin 9 as chip select pin.
I can see that the default hardware SS pin is 10, which is the same pin as the ethernet chip select pin. Is that causing any conflicts?
I can see that the default hardware SS pin is 10, which is the same pin as the ethernet chip select pin. Is that causing any conflicts?
The SS pin defines which slave (the Ethernet card or the MP3 player) is to respond to the SPI command. If you try having two devices listen and respond at the same time, of course that will cause conflicts.
I have looked even further into it today, and i still didn't get the SD card to work.
I have come to the conclusion that the W5100 chip may be using pin 9, can anyone please confirm/deny? I think that the schematics are not accurate in this, so Eagle may have to be used.