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

相关推荐
LeoZY_16 小时前
LinkScope 使用笔记:基于 OpenOCD 的通用硬件芯片调试助手
笔记·单片机·嵌入式硬件·开源软件
星空真迷人19 小时前
嵌入式鸿蒙并非精简版,核心究竟是什么?
stm32·单片机·嵌入式硬件·物联网·华为·harmonyos·iot
2301_8014349820 小时前
STM32F407移植TinyUSB
stm32·单片机·嵌入式硬件
国产HT1621B21 小时前
YL4056 NTC 外围电阻 R3/R4 计算:从公式推导到工程选型
科技·单片机·嵌入式硬件
czhaii1 天前
STC32G144K246 Ai8052单片机外设和功能
单片机·硬件工程
唔好理总之好犀利1 天前
TVS管分析:MKS烧保险丝异常分析
stm32·单片机·嵌入式硬件
芯片设计-曾工1 天前
当精准脉冲遇上清晰视界——CH2205E模块与YL1621的“黄金搭档“
驱动开发·stm32·单片机·51单片机·硬件工程
LCG元2 天前
STM32 硬件 SPI + DMA 驱动 OLED 显示屏(SSD1306):从原理到 112fps 高速刷新全流程
stm32·单片机·嵌入式硬件
天吾cc2 天前
RTT-ADC
单片机·嵌入式硬件·学习
qq_448011162 天前
C语言中的野指针和空指针
c语言·开发语言·单片机