Hi Bill,
Thanks for the great library.
When I Upload the MP3Shield_Library_Demo, I get this message in the Serial Monitor:
Free RAM = 1051 Should be a base line of 1095, on ATmega328 when using INTx
Error code: 4 when trying to start MP3 player
I then get the help menu printout, but I can’t play any of the example track files, and ‘d’ displays no files.
I found this line in SFEMP3Shield.cpp: ” if(MP3Mode != (SM_LINE1 | SM_SDINEW)) return 4;”
So I uncommended the code above that line, and added a few printouts of my own to take a look:
Serial.print("SM_LINE1 = ");
Serial.println(SM_LINE1, HEX);
Serial.print("SM_SDINEW = ");
Serial.println(SM_LINE1, HEX);
Serial.print(F("SCI_Mode (0x4800) = 0x"));
Serial.println(MP3Mode, HEX);
This was the Serial Monitor printout:
SM_LINE1 = 4000
SM_SDINEW = 4000
SCI_Mode (0x4800) = 0x0
I’m not sure what SCI_Mode is referring to or what I should do to fix the problem.
My setup:
Seedstudio Seeeduino (Duemilanove clone)
Sparkfun MP3 Player Shield
SanDisk 8GB MicroSD HC card (formatted as FAT32)
When I run the SdFat library QuickStart example, I can get Serial Monitor to printout the SD card file contents successfully.
Thanks for your help! ~Stephen