2_light_drivers esp-idf5.x报错 Failed to resolve component ‘esp_adc_cal‘.

书上例子用4.3.x 不服就要用5

-- Detecting C compile features

-- Detecting C compile features - done

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Check for working CXX compiler: C:/Espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.

-- Building ESP-IDF components for target esp32c3

CMake Error at C:/Espressif/frameworks/esp-idf-v5.0/tools/cmake/build.cmake:245 (message):

Failed to resolve component 'esp_adc_cal'.

Call Stack (most recent call first):

C:/Espressif/frameworks/esp-idf-v5.0/tools/cmake/build.cmake:287 (__build_resolve_and_add_req)

C:/Espressif/frameworks/esp-idf-v5.0/tools/cmake/build.cmake:574 (__build_expand_requirements)

C:/Espressif/frameworks/esp-idf-v5.0/tools/cmake/project.cmake:440 (idf_build_process)

CMakeLists.txt:14 (project)

enmmm

按图修改

然后

fatal error:

driver/gpio.h: No such file or directory

16 | #include "driver/gpio.h"

| ^~~~~~~~~~~~~~~

tal error: driver/ledc.h: No such file or directory

22 | #include "driver/ledc.h"

| ^~~~~~~~~~~~~~~

https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32/migration-guides/release-5.x/5.0/build-system.html

timer 报错 滚去学下定时器相关在来修改

详情 上述链接 全部贡献跑通5.x仓库

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值