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

相关推荐
田甲3 小时前
【STM32】基于串口的bootloader
stm32·单片机·嵌入式硬件
lingzhilab6 小时前
零知IDE——STM32F407VET6与ADS1115模数转换器实现多通道数据采集显示系统
stm32·单片机·开源
xxy.c9 小时前
基于IMX6ULL的时钟,定时器(EPIT,GPT)
单片机·嵌入式硬件·fpga开发
happygrilclh10 小时前
stm32L496 flash 分配
stm32·单片机·嵌入式硬件
古译汉书10 小时前
嵌入式铁头山羊STM32-各章节详细笔记-查阅传送门
数据结构·笔记·stm32·单片机·嵌入式硬件·个人开发
一枚码农~14 小时前
STM32红外与LED控制实战
单片机·嵌入式硬件
Heavy sea14 小时前
STM32定时器(寄存器与HAL库实现)
stm32·单片机
李永奉16 小时前
51单片机-实现红外遥控模块教程
单片机·嵌入式硬件·51单片机
辛集电子17 小时前
【STM32】位带操作
stm32·单片机·嵌入式硬件
MOS管-冠华伟业18 小时前
微硕WSF4012 N+P双沟MOS管,驱动汽车智能座椅“无感”升降气泵
单片机·嵌入式硬件