Closed romain145 closed 3 days ago
Why would you want to use such a big max_buffer_len ?
Good question. I'll stick with 1024 then. Still, this should throw an error instead of crashing?
Does the rest of the setup look OK? I'm trying to evaluate the performance of the ESP32-S3 ADC. Thanks
For audio I would would change the following adcConfig.is_auto_center_read = true;
I can move the allocation for the temporary memory from the stack to the heap. Another way to deal with this is just to increase the stack size by increasing the CONFIG_ARDUINO_LOOP_STACK_SIZE!
closed due to inactivity
Problem Description
Default max_buffer_len is 1024 in the example. Increasing it to 4096 causes a crash and reboot of the ESP32-S3:
Note that I also had to lower the sample_rate down to 22050 since the default 44100 caused this issue:
starting ADC... [E] AnalogAudioESP32V1.h : 470 - sample rate eff: 88200 can not be set, range: 611 to 83333
Device Description
ESP32-S3-DevKitC-1-N32R8V
Sketch
Other Steps to Reproduce
The Arduino framework that comes by default in platformIO is based on esp-idf 4.4.6. I may have bodged the install of the latest Arduino framework to get it to work, that may explain the errors I'm getting. If there is a better way to getting this to work please let me know :)
Here is the content of platform.ini for reference:
What is your development environment
PlatformIO with Arduino ESP32 alpha v3.0.0 based on ESP-IDF v5.1 for ESP32-S3 support in platformIO. see https://github.com/platformio/platform-espressif32/pull/1281
I have checked existing issues, discussions and online documentation