-
-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base-adc-serial example crash on ESP32-S3 #1231
Comments
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. |
For audio I would would change the following |
I can move the allocation for the temporary memory from the stack to the heap. |
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 platformio/platform-espressif32#1281
I have checked existing issues, discussions and online documentation
The text was updated successfully, but these errors were encountered: