microSD frustrations
Erlend
Posts: 612
Last time I built something I had no problems playing wav from the SD card. Now I've wired up a new build (uing the Prof Dev board). This time I messed up the pinouts to the card adaptor and the wavplayer is not working. First I thought something had burned, but in my struggle to diagnose & troubleshoot, I found SDCard_micro_01 from the obex, and succeeded in opening a file on the SD. On the PC it is corrupted, though, so I cannot check if the text was actually written. The SDCard_micro_01 program was out of sync with fsrw so I had to do some edits to make it run. I am not sure I trust it to be the best test program. Are there any better programs for this purpose?
I am frustrated by the wilderness of wav & SD objects on obex. I simply want to play wav from SD, and to readwrite numbers that I want to assign to variables. On top of this, if the object(s) allowed for SD-pinouts and audio-pinouts to to be part of the object method call parameters instead of being hardcoded in the object itself, I would be very happy. Not really a problem, just against my coding style.
Erlend
I am frustrated by the wilderness of wav & SD objects on obex. I simply want to play wav from SD, and to readwrite numbers that I want to assign to variables. On top of this, if the object(s) allowed for SD-pinouts and audio-pinouts to to be part of the object method call parameters instead of being hardcoded in the object itself, I would be very happy. Not really a problem, just against my coding style.
Erlend
Comments
Agreed, the fsrw is good, but I would like to do a call something like this: PlayWav(file,pinAudioR, pinAudioL, pinSDdo, pinSDclk, pinSDdi, pinSDcs), and as far as I can see the wav player objects all hardcode these pin numbers.
Maybe it is possible to tweak the wav player object.
Massimo
http://obex.parallax.com/objects/567/
Fantastic - this looks to fulfill all my wishes. I look forward to try it tonight.
I'll test with a new SDcard in case the old one have been damaged somehow. After that I do not know how to eliminate any more possible faults.