esp32在编译是报错在idf中有该文件,但是说没有

报错没有头文件esp_efuse_table.h

bash 复制代码
D:/Espressif/frameworks/esp-idf-v5.3.1/components/driver/deprecated/driver/i2s.h:27:2: warning: #warning "This set of I2S APIs has been deprecated, please include 'driver/i2s_std.h', 'driver/i2s_pdm.h' or 'driver/i2s_tdm.h' instead. if you want to keep using the old APIs and ignore this warning, you can enable 'Suppress legacy driver deprecated warning' option under 'I2S Configuration' menu in Kconfig" [-Wcpp]
   27 | #warning "This set of I2S APIs has been deprecated, \
      |  ^~~~~~~
E:/job/esp32_sound/esp32c3/project/0113/openai-realtime-embedded-sdk/main/media.c:16:10: fatal error: esp_efuse_table.h: No such file or directory
   16 | #include "esp_efuse_table.h"
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
[237/243] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/http.c.obj
ninja: build stopped: subcommand failed.

 *  终端进程"d:\Espressif\tools\tools\ninja\1.11.1\ninja.exe"已终止,退出代码: 1。 

问题原因:在CMakeLists.txt没有包含路径efuse

解决办法在main\CMakeLists.txt加入efuse(找到在idf的esp_efuse_table.h所在的组件,加入)

相关推荐
MickyCode30 分钟前
嵌入式开发调试之Traceback
arm开发·stm32·单片机·mcu
czwxkn1 小时前
3STM32(stdl)外部中断
stm32·单片机·嵌入式硬件
羽获飞2 小时前
从零开始学嵌入式之STM32——6.与GPIO相关的7个寄存器--重要知识
stm32·单片机·嵌入式硬件
棒子陈2 小时前
使用cursor移植单片机的串口驱动(DMA+队列式串口驱动,APM32F103移植到PY32F071)
单片机·嵌入式硬件·cursor·py32f071
蓬荜生灰3 小时前
STM32(11)-- GPIO输出,库函数点灯
stm32·单片机·嵌入式硬件
csg11074 小时前
PIC单片机驱动BH1750光照传感器,轻松获取环境光照数据
单片机·嵌入式硬件·物联网
雾削木4 小时前
使用 ESPHome 的核心指令
java·前端·javascript·单片机·嵌入式硬件
DLGXY6 小时前
STM32——输入捕获、编码器接口(十一)
stm32·单片机·嵌入式硬件
余生皆假期-13 小时前
永磁同步电机二次起步处理
单片机·嵌入式硬件
DLGXY14 小时前
STM32——TIM定时器、定时中断、RCC时序(八)
stm32·单片机·嵌入式硬件