-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
ADC-related compile errors when shifting to ESP32S3 #61
Comments
They deprecated a bunch of the old APIs in the latest idf. You can include
the legacy headers I think.
…On Tue, May 2, 2023 at 15:28, Hamish Cunningham ***@***.***> wrote:
hi Chris! Some of my students are doing Marvin projects again, and I
realise the ADC has changed on the S3 :(
Have you seen this in any of your projects? I've been trying to fix
compile errors like lib/audio_input/ADCSampler.cpp:16:5: error:
'i2s_adc_enable' was not declared in this scope but not having much luck
and perhaps would need a more thorough understanding of the ADC peripheral
library in IDF...
Best, Hamish
—
Reply to this email directly, view it on GitHub
<#61>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFMTAATMZ2PEZASMGIFHKDXEEKYJANCNFSM6AAAAAAXTEHIKQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
According to the docs the old API remains in the same place, with new API in new headers. I think the issue is that the S3 also doesn't support some of the old API so they've removed it. Apparently the S3 doesn't support I2S on ADC2, so functions calls |
Ah, you are correct -
espressif/esp-idf#8536
Thanks annoying.
…On Wed, May 3, 2023 at 08:08, Hamish Cunningham ***@***.***> wrote:
According to the docs the old API remains in the same place, with new API
in new headers. I think the issue is that the S3 also doesn't support some
of the old API so they've removed it. Apparently the S3 doesn't support I2S
on ADC2, so functions calls i2s_set_adc_mode(m_adcUnit, m_adcChannel);
aren't valid any more, at least in the old API.
—
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFMTAB5MYBKP7RVHF7TPBTXEH77DANCNFSM6AAAAAAXTEHIKQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
If ADC is not used, just delete |
Hey there @sanyi ! From the research I have been doing, it seems the ESP32 has a good amount of radio noise from the Bluetooth and Wifi that seems to make its way into the ADC, as is outlined in this video, around this timestamp: https://www.youtube.com/watch?v=pPh3_ciEmzs&t=241s Are you using either of those features? If so, I'd try and turn them off and see what your results are like after that. Also, it is possible that what you are getting is the exact behavior one should expect if they circumvent the disability to use I2S on the internal ADC, if I am to understand that that is what you are doing. |
hi Chris! Some of my students are doing Marvin projects again, and I realise the ADC has changed on the S3 :(
Have you seen this in any of your projects? I've been trying to fix compile errors like
lib/audio_input/ADCSampler.cpp:16:5: error: 'i2s_adc_enable' was not declared in this scope
but not having much luck and perhaps would need a more thorough understanding of the ADC peripheral library in IDF...Best, Hamish
The text was updated successfully, but these errors were encountered: