无法找到这个 esp_adc_cal 组件

Moderator: ESP_ZT

Jimmyxu
Posts: 1
Joined: Fri Sep 29, 2023 3:16 pm

无法找到这个 esp_adc_cal 组件

Postby Jimmyxu » Fri Sep 29, 2023 3:27 pm

[/Codebox]我在使用《ESP32-C3 物联网工程开发实战》提供的demo 代码进行测试 D:\book-esp32c3-iot-projects-main\book-esp32c3-iot-projects-main\device_firmware>cd 2_light_drivers 时,使用 idf.py build, 系统提示我下面的信息:
See also "D:/book-esp32c3-iot-projects-main/book-esp32c3-iot-projects-main/device_firmware/2_light_drivers/build/CMakeFiles/CMakeOutput.log".
HINT: The component esp_adc_cal could not be found. This could be because: component name was misspelled, the component was not added to the build, the component has been moved to the IDF component manager or has been removed and refactored into some other component.
Please look out for component in 'https://components.espressif.com' and add using 'idf.py add-dependency' command.
Refer to the migration guide for more details about moved components.
Refer to the build-system guide for more details about how components are found and included in the build.
我试图根据这个提示信息,在https://components.espressif.com 中无法找到这个 esp_adc_cal 组件,就无法执行 idf.py idf.py add-dependency esp_adc_cal;
请问一下怎么修正这个错误 ?

ESP_WangYX
Posts: 97
Joined: Mon Jun 28, 2021 12:48 pm

Re: 无法找到这个 esp_adc_cal 组件

Postby ESP_WangYX » Tue Nov 07, 2023 2:44 am

Maybe you have used legacy esp_adc_cal in your component, just like:

Code: Select all

// in cmakelist.txt
REQUIRES esp_adc_cal
Just change this to:

Code: Select all

REQUIRES esp_adc
Additionally, some examples from this book seem to have been used on v4.4.

Who is online

Users browsing this forum: No registered users and 17 guests