Giter Club home page Giter Club logo

arduino-stoerbert's Issues

Bootloop trying to run compiled sketch

When the sketch is compiled and uploaded, this is the output from the Serial Monitor:

Loaded album from EEPROM: ⸮⸮⸮
Loaded track from EEPROM: 255
Resuming playback
Loading files from directory: /⸮⸮⸮/
File ⸮VS1053 found
Loaded album from EEPROM: ⸮⸮⸮
Loaded track from EEPROM: 255
Resuming playback
Loading files from directory: /⸮⸮⸮/
File ⸮VS1053 found
Loaded album from EEPROM: ⸮⸮⸮
Loaded track from EEPROM: 255
Resuming playback

Music never starts playing. It appears to just reboot forever. The 2GB micro SD card is formatted FAT32 and has directories 1 through 9, each one containing files 01.mp3 through 05.mp3. I also tried naming the directories k01 through k09 as specified in readme.MD without success, though the code in player.cpp seems to imply that the directory naming should actually be 1 through 9 (without k0 in front). The Music Maker shield functions fine and plays music from the same SD card when using the player_simple and player_interrupts example sketches.

Compile errors

When trying to compile the sketch, the following warnings come up (full file path edited to protect privacy):


sketch\player.cpp:89:35: warning: invalid conversion from 'void*' to 'char*' [-fpermissive]

         p.album[sequence] = malloc(strlen(entry.name()) + 1);

                             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~

sketch\player.cpp: In function 'void powerReminder()':

sketch\player.cpp:235:39: warning: large integer implicitly truncated to unsigned type [-Woverflow]

         musicPlayer.sineTest(1000, 500);

                                       ^

sketch\player.cpp: In function 'void setupPlayer()':

sketch\player.cpp:410:63: warning: invalid conversion from 'const short unsigned int*' to 'const uint16_t* {aka const unsigned int*}' [-fpermissive]

     vs1053.applyPatch(plugin, sizeof(plugin)/sizeof(plugin[0]));

                                                               ^

In file included from sketch\player.cpp:4:0:

x:\path\to\Adafruit_VS1053_Library/Adafruit_VS1053.h:132:8: note:   initializing argument 1 of 'void Adafruit_VS1053::applyPatch(const uint16_t*, uint16_t)'

   void applyPatch(const uint16_t *patch, uint16_t patchsize);

        ^~~~~~~~~~

Compilation appears to complete despite these warnings, and upload to Arduino Uno proceeds as expected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.