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所在的组件,加入)

相关推荐
张海森-1688208 小时前
库里搜索函数 api接口__grep命令
单片机
xxwxx__9 小时前
51单片机定时器/计数器中断详解(T0和T1)——从入门到精通
c语言·单片机·嵌入式硬件·51单片机
HAPPY酷9 小时前
STM32 两种烧录方式对比:Keil Load vs FlyMCU 串口下载
stm32·单片机·嵌入式硬件
清风6666669 小时前
基于单片机的汽车胎压与温度监控系统
单片机·嵌入式硬件·汽车·毕业设计·课程设计·期末大作业
✎ ﹏梦醒͜ღ҉繁华落℘9 小时前
产品研发----点型光电感烟火灾探测器(三)
单片机
点灯小铭9 小时前
基于单片机控制的多模式智能冰箱设计—冷藏、速冷、省电与自动化霜功能实现
单片机·mongodb·自动化·毕业设计·课程设计·期末大作业
清风6666669 小时前
基于单片机的自动路灯监控系统设计
单片机·嵌入式硬件·毕业设计·课程设计·期末大作业
Szime9 小时前
深智微40Gsps高速数据采集系统进入工程化阶段
科技·单片机·嵌入式硬件·fpga开发
fffzd10 小时前
STM32:OLED原理
stm32·单片机·嵌入式硬件·iic·oled·嵌入式软件
清风66666620 小时前
基于单片机与DAC0832的双路波形信号发生系统设计
单片机·嵌入式硬件·毕业设计·课程设计·期末大作业