esp32主板报错不知如何解决-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 3028|回复: 7

[已解答] esp32主板报错不知如何解决

[复制链接]
发表于 2021-5-10 17:12 | 显示全部楼层 |阅读模式
用的是官方的标准案例,主板选择的是DF的FrieBeetle Esp32。蓝牙可以正常连接,wifi连接的时候报错信息如下
In file included from C:\Program Files (x86)\Arduino\libraries\blinker-library-0.3.7\src/BlinkerESPMQTT.h:16:0,
                 from C:\Program Files (x86)\Arduino\libraries\blinker-library-0.3.7\src/Blinker.h:38,
                 from C:\Program Files (x86)\Arduino\libraries\blinker-library-0.3.7\examples\Blinker_Hello\Hello_WiFi\Hello_WiFi.ino:48:
C:\Program Files (x86)\Arduino\libraries\blinker-library-0.3.7\src/Adapters/BlinkerMQTT.h: In member function 'int BlinkerMQTT::connectServer()':
C:\Program Files (x86)\Arduino\libraries\blinker-library-0.3.7\src/Adapters/BlinkerMQTT.h:2477:18: error: 'class WiFiClientSecure' has no member named 'setInsecure'
         client_s.setInsecure();
                  ^
"WiFi.h" 对应多个库
已使用: C:\Users\Administrator\AppData\Local\Arduino15\packages\firebeetle32\hardware\esp32\0.1.0\libraries\WiFi
未使用:C:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
为开发板 FireBeetle-ESP32 编译时出错。

不知道这是什么错误,麻烦哪位大神知道的话帮忙指点一下。
发表于 2021-5-10 19:13 | 显示全部楼层
按文档要求配置环境,使用esp32官方package
 楼主| 发表于 2021-5-10 19:31 | 显示全部楼层
我试试,但是用了官方包的话,还能找到这块主板吗?
 楼主| 发表于 2021-5-10 20:01 | 显示全部楼层
奈何col 发表于 2021-5-10 19:13
按文档要求配置环境,使用esp32官方package

老师您好,我按您之前帖子教程,先删除了之前的包,然后使用了那个32_package_1.0.5.exe,来安装然后找到主板编译,还是报错 不过错误变了。
In file included from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\cores\esp32/Arduino.h:185:0,
                 from sketch\Hello_WiFi.ino.cpp:1:
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:62:22: error: redefinition of 'const uint8_t D0'
static const uint8_t D0 = 3;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:33:22: note: 'const uint8_t D0' previously defined here
static const uint8_t D0 = 3;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:63:22: error: redefinition of 'const uint8_t D1'
static const uint8_t D1 = 1;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:34:22: note: 'const uint8_t D1' previously defined here
static const uint8_t D1 = 1;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:64:22: error: redefinition of 'const uint8_t D2'
static const uint8_t D2 = 25;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:35:22: note: 'const uint8_t D2' previously defined here
static const uint8_t D2 = 25;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:65:22: error: redefinition of 'const uint8_t D3'
static const uint8_t D3 = 26;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:36:22: note: 'const uint8_t D3' previously defined here
static const uint8_t D3 = 26;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:66:22: error: redefinition of 'const uint8_t D4'
static const uint8_t D4 = 27;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:37:22: note: 'const uint8_t D4' previously defined here
static const uint8_t D4 = 27;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:67:22: error: redefinition of 'const uint8_t D5'
static const uint8_t D5 = 9;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:38:22: note: 'const uint8_t D5' previously defined here
static const uint8_t D5 = 9;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:68:22: error: redefinition of 'const uint8_t D6'
static const uint8_t D6 = 10;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:39:22: note: 'const uint8_t D6' previously defined here
static const uint8_t D6 = 10;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:69:22: error: redefinition of 'const uint8_t D7'
static const uint8_t D7 = 13;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:40:22: note: 'const uint8_t D7' previously defined here
static const uint8_t D7 = 13;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:70:22: error: redefinition of 'const uint8_t D8'
static const uint8_t D8 = 5;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:41:22: note: 'const uint8_t D8' previously defined here
static const uint8_t D8 = 5;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:71:22: error: redefinition of 'const uint8_t D9'
static const uint8_t D9 = 2;
                      ^
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\variants\firebeetle32/pins_arduino.h:42:22: note: 'const uint8_t D9' previously defined here
static const uint8_t D9 = 2;
                      ^
"WiFi.h" 对应多个库
已使用: C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\WiFi
未使用:C:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
为开发板 FireBeetle-ESP32 编译时出错。

-----------------------------------------------------------------------------
麻烦请教一下您这个错误该怎么来解决?
 楼主| 发表于 2021-5-10 23:31 | 显示全部楼层
捣鼓整整一天了 试了N多种方式,发现只要是DF的主板不管是8266 还是 esp32 还是NB系列的都是这个错误,但这些主板连接阿里云、onenet都没问题。这是歧视DF吗?本来想着这个挺简单想推一批学校呢现在看来悬了…………
发表于 2021-5-11 09:24 | 显示全部楼层
来自网友:DF(也可能是其他开发者)向esp官方仓库提交的firebeetle32定义文件有bug,选择其他开发板,把Dx的引脚编号改成GPIO编号即可。
 楼主| 发表于 2021-5-11 12:28 | 显示全部楼层
谢谢,我已经提交给DF官方技术这个问题,他们正在修改。估计需要等几天。主要原因就是GPID转成兼容arduino引脚的时候有些地方匹配有问题。
发表于 2021-5-13 09:39 | 显示全部楼层
你要下载他们的开发板,开发板地址不一样的吧
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-28 12:35 , Processed in 0.101844 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表