fatal error: esp_adc_cal.h: No such file or directory (While Compiling ADC Example)

espnewbie
Posts: 6
Joined: Thu Aug 06, 2020 2:49 pm

fatal error: esp_adc_cal.h: No such file or directory (While Compiling ADC Example)

Postby espnewbie » Mon Mar 01, 2021 5:15 pm

Hi All,

I am pretty new to ESP-IDF development and currently, I am testing the ADC example.

However, I get an error during the compilation "fatal error: esp_adc_cal.h: No such file or directory". But the component is on the esp-idf components folder.

I just need your expert assistance on what and where should I add a line of code to include the directory. Thank you.

espnewbie
Posts: 6
Joined: Thu Aug 06, 2020 2:49 pm

Re: fatal error: esp_adc_cal.h: No such file or directory (While Compiling ADC Example)

Postby espnewbie » Tue Mar 02, 2021 3:19 pm

this is the code I have on the CMakeLists.txt of the main folder.

Code: Select all

idf_component_register(SRCS "adc1_example_main.c"
                    INCLUDE_DIRS "."
                    REQUIRES "esp_adc_cal")
Do I miss anything aside from this?

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 108 guests