Compiling for Arduino Uno R3 fails #1999
-
Problem DescriptionWhen I try to compile "player-sdfat-vs1053.ino" from the examples (or any example in fact) for the Arduino Uno R3, it fails with the error below because the "AudioToolsLogger" class is not found. This makes me wonder whether the original Arduino Uno is supported by the library at all? Furthermore, when I comment the line with AudioToolsLogger and try to compile, I get memory exceeded errors. Would I have to optimize this myself or are there any existing switches (besides e.g. LOG_NO_MSG=true) to reduce memory consumption? Device DescriptionArduino Uno R3 SketchCompile vs1053 example from repo: examples/examples-vs1053/player-sdfat-vs1053/player-sdfat-vs1053.ino Other Steps to ReproduceNo response What is your development environment (incl. core version info)Arduino IDE 2.3.5 I have checked existing issues, discussions and online documentation
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Here are the exact memory exceeded messages: |
Beta Was this translation helpful? Give feedback.
-
The Arduino UNO just has not enough RAM and PROGMEM to use the AudioTools: to make it compile, I have deactivated the logger (in the AudioToolsConfig.h), but as you can see, even with this you run out of memory. You can try to use some vs1053 and SD library only and just copy the data from your files to the vs1053 instead of using the AudioPlayer which implements a lot of functionality (including some recursive file retrieval). The UNO R4, which has much more RAM might be a slightly better choice if you want to stick with Arduino boards. |
Beta Was this translation helpful? Give feedback.
-
I havn't used this for a long time since I usually do the decoing with a software codec using the AudioTools. |
Beta Was this translation helpful? Give feedback.
The Arduino UNO just has not enough RAM and PROGMEM to use the AudioTools: to make it compile, I have deactivated the logger (in the AudioToolsConfig.h), but as you can see, even with this you run out of memory.
You can try to use some vs1053 and SD library only and just copy the data from your files to the vs1053 instead of using the AudioPlayer which implements a lot of functionality (including some recursive file retrieval).
The UNO R4, which has much more RAM might be a slightly better choice if you want to stick with Arduino boards.
However, I recommend to use some RP2040/RP2050 or better a ESP32 together with an I2S DAC which gives some perfect audio quality. This also allows you to…