Page 1 of 1

error: cannot resolve "esp_adc_cal" while compiling an example

Posted: Mon May 08, 2023 6:29 pm
by rduell
hello, i'm a newbie on esp32 and need some hints. I own an ESP32-LyraTD-MSC board and try to get the example "get-started/play_mp3_control" compiled with VSCode. ESP-IDF (v5.0) and ESO_ADF and VScode extentions are setup correctly. Trying to compile the "play_mp3_control" example and even running the "idf.py menuconfig" command throws an error saying the "esp_adc_cal" is not available. I know that this driver has been replaced by "esp_adc" (-> https://docs.espressif.com/projects/esp ... nents.html) but how can i make my cmake project be aware of this? The guidelines (e.g. https://docs.espressif.com/projects/esp ... erals.html) give some explanantions but no details how to implement the change. I could find the folder "esp-idf/components/esp_adc" which holds the correct source code and also the legacy code but I dont know how to add the path of esp_adc to the "CMakefile.txt" so that both, the new code and the legacy driver, can be found.

Can anybody point to the right direction. So, which CMakeFile.txt do i have to change and what to add?
Thanks