I keep getting memory over allocated err. But I dont see anything I can remove. #1860
Unanswered
SyedYaseen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am super new to this and would appreciate some help. I even removed the logger. Still the memory is high.
Err:
Sketch uses 1334909 bytes (101%) of program storage space. Maximum is 1310720 bytes.
Global variables use 55852 bytes (17%) of dynamic memory, leaving 271828 bytes for local variables. Maximum is 327680 bytes.
`#define USE_HELIX
#include "AudioTools.h"
#include "AudioTools/AudioCodecs/CodecMP3Helix.h"
URLStream url("ssid", "password");
I2SStream out;
MP3DecoderHelix decoder;
audio_tools::EncodedAudioStream dec(&out, &decoder);
StreamCopy copier(dec, url);
void setup(void) {
auto config = out.defaultConfig(RXTX_MODE);
config.sample_rate = 44100;
config.bits_per_sample = 16;
config.i2s_format = I2S_STD_FORMAT;
config.is_master = true;
config.port_no = 0;
config.pin_ws = 18;
config.pin_bck = 5;
config.pin_data = 19;
config.pin_data_rx = 17;
config.pin_mck = 0;
config.use_apll = true;
out.begin(config);
dec.addNotifyAudioChange(out);
dec.begin();
url.begin("https://shorturl.at/q31Iv", "audio/mp3");
}
void loop() {
copier.copy();
}`
Beta Was this translation helpful? Give feedback.
All reactions