ESP32S2 ADC different attenuation on every channel

pc1010
Posts: 1
Joined: Wed Apr 12, 2023 10:03 am

ESP32S2 ADC different attenuation on every channel

Postby pc1010 » Wed Apr 12, 2023 10:12 am

Hello everyone!
I'm having an issue with setting different attenuation on ADC channels with IDF 5.0.1 using adc_continuous_config function.
Whenever I do it, the function is aborting with "ESP_ERROR_CHECK failed: esp_err_t 0x102 (ESP_ERR_INVALID_ARG)".
I see that in adc_continuous.c:588 there is a check "} else if (handle->adc1_atten != pat->atten) {" that checks if all channels have the same attenuation.
In previous releases it was possible to configure it separately :?
Thanks

Who is online

Users browsing this forum: Bing [Bot] and 116 guests