Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
player eventually freezes #4
The feedBuffer() method relies on DREQ for determining when it is okay to grab more bytes from the SD card, but according to the datasheet this is not sufficient, as DREQ can change for other reasons besides "ready for data".
In my sketch I noticed that repeatedly calling startPlayingFile() will eventually cause the Arduino to freeze, and when it does the DREQ pin remains low.
Doing a softReset() of the VS1053 prevents the freezing, but that is not ideal.
referenced this issue
Jun 5, 2014
My PR did not actually fix the eventual freeze; I just hadn't waited long enough to find that out.
Please give this version a try. Let me know if it solve the freezing problem?
Also, you might try with Arduino 1.5.8, which has the newer SPI library with transaction support.....