简体   繁体   English

ESP-IDF 缺少使用 ESP-32 的驱动程序

[英]ESP-IDF missing driver using an ESP-32

I'm trying to build a project with an ESP-32 but when i'm trying to build the project it came with this error我正在尝试使用 ESP-32 构建项目,但是当我尝试构建项目时出现此错误

" fatal error: driver/i2c.h: No such file or directory 21 | #include "driver/i2c.h" " “ 致命错误:driver/i2c.h:没有这样的文件或目录 21 | #include “driver/i2c.h” “

I'm using a tutorial to flash my esp-32: https://github.com/mjuhanne/fyrtur-esp in the "sdk" part the author show how to build it and my error came when i tried to do "idf.py app"我正在使用 flash 我的 esp-32 的教程: https://github.com/mjuhanne/fyrtur-esp在“sdk”部分,作者展示了如何构建它,当我尝试执行“idf”时出现了错误.py 应用程序”

anybody has an idea?有人有想法吗? thanks:)谢谢:)

I search on inte.net to install a librairy or anything else but i don't find it, I'm new with esp-32我在 inte.net 上搜索以安装库或其他任何东西,但我没有找到它,我是 esp-32 的新手

I have similar include problems when I was using ESP-IDF v.5 with some older projects, some of the modules were changed.当我在一些较旧的项目中使用 ESP-IDF v.5 时,我遇到了类似的包含问题,一些模块已更改。 Moreover, the drivers used by the project are likely to be older as well.此外,该项目使用的驱动程序也可能较旧。

Possible solutions:可能的解决方案:

I believe it would help to try downgrading the ESP-IDF you're using to the version used in the project, v.4.4.3 should be alright.我相信尝试将您正在使用的 ESP-IDF 降级到项目中使用的版本会有所帮助, v.4.4.3应该没问题。

I hope this helps, good luck!我希望这会有所帮助,祝你好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM