CORRUPT HEAP error when recording wav file from I2S to SD #582
-
I want to record a wav file from an INMP441 microphone to an SD card while a button is pressed. I built this code (based mostly on examples here) some time ago, and it worked flawlessly.
Here, the output it gives after one button push:
I'm completely lost as to what is happening here, and why it used to work without this problem, any help is appreciated, thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I recommend to keep the following as global memory I2SStream i2s; // Access I2S as a stream
File audioFile; //empty audio file object
EncodedAudioStream out(&audioFile, new WAVEncoder()); // Access audioFile as a stream
StreamCopy copier(out, i2s); To analyse the issue you will need to learn how to analyse the stacktrace yourself ! https://arduino-esp8266.readthedocs.io/en/latest/faq/a02-my-esp-crashes.html |
Beta Was this translation helpful? Give feedback.
I recommend to keep the following as global memory
To analyse the issue you will need to learn how to analyse the stacktrace yourself !
https://arduino-esp8266.readthedocs.io/en/latest/faq/a02-my-esp-crashes.html