arduino编译esp8266出现错误-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 495|回复: 6

[未解决] arduino编译esp8266出现错误

[复制链接]
发表于 2022-5-15 19:58 | 显示全部楼层 |阅读模式
本人小白,刚接触这个是在搞不了了,还请大神指点迷津


Arduino:1.8.18 (Windows 10), 开发板:"Arduino, Primo, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

In file included from c:\users\zamer\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\assert.h:10,

                 from c:\users\zamer\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\sys\reent.h:503,

                 from c:\users\zamer\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\stdlib.h:18,

                 from c:\users\zamer\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\cstdlib:75,

                 from c:\users\zamer\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\stdlib.h:36,

                 from C:\Users\Zamer\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/Arduino.h:27,

                 from sketch\WeatherStation-epaper.ino.cpp:1:

F:\arduino\libraries\WiFiManager/WiFiManager.h:25:24: error: 'const char HTTP_HEAD []' redeclared as different kind of entity

   25 | const char HTTP_HEAD[] PROGMEM            = "<!DOCTYPE html><html lang=\"en\"><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\"/><title>{v}</title>";

      |                        ^~~~~~~

In file included from C:\Users\Zamer\Documents\Arduino\WeatherStation-epaper\WeatherStation-epaper.ino:31:

C:\Users\Zamer\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266WebServer\src/ESP8266WebServer.h:47:39: note: previous declaration 'HTTPMethod HTTP_HEAD'

   47 | enum HTTPMethod { HTTP_ANY, HTTP_GET, HTTP_HEAD, HTTP_POST, HTTP_PUT, HTTP_PATCH, HTTP_DELETE, HTTP_OPTIONS };

      |                                       ^~~~~~~~~

exit status 1

为开发板 Arduino 编译时出错。



在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。


发表于 2022-5-15 21:51 | 显示全部楼层
开发板选错了
 楼主| 发表于 2022-5-15 21:53 | 显示全部楼层

大佬,自己做的板子应该选哪个?模块用的esp-12f
发表于 2022-5-15 21:57 | 显示全部楼层
zamer521 发表于 2022-5-15 21:53
大佬,自己做的板子应该选哪个?模块用的esp-12f

1652623027(1).png


1.0 这个
 楼主| 发表于 2022-5-15 21:58 | 显示全部楼层

感谢回复,我用这个还是出现这样的错误
发表于 2022-5-15 21:59 | 显示全部楼层
zamer521 发表于 2022-5-15 21:58
感谢回复,我用这个还是出现这样的错误

编译空程序看看
 楼主| 发表于 2022-5-15 22:12 | 显示全部楼层

空的没问题,有问题的提示这个Arduino:1.8.18 (Windows 10), 开发板:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"





















In file included from c:\users\zamer\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\assert.h:10,

                 from c:\users\zamer\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\sys\reent.h:503,

                 from c:\users\zamer\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\stdlib.h:18,

                 from c:\users\zamer\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\cstdlib:75,

                 from c:\users\zamer\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\stdlib.h:36,

                 from C:\Users\Zamer\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/Arduino.h:27,

                 from sketch\WeatherStation-epaper.ino.cpp:1:

F:\arduino\libraries\WiFiManager/WiFiManager.h:25:24: error: 'const char HTTP_HEAD []' redeclared as different kind of entity

   25 | const char HTTP_HEAD[] PROGMEM            = "<!DOCTYPE html><html lang=\"en\"><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\"/><title>{v}</title>";

      |                        ^~~~~~~

In file included from C:\Users\Zamer\Documents\Arduino\WeatherStation-epaper\WeatherStation-epaper.ino:31:

C:\Users\Zamer\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266WebServer\src/ESP8266WebServer.h:47:39: note: previous declaration 'HTTPMethod HTTP_HEAD'

   47 | enum HTTPMethod { HTTP_ANY, HTTP_GET, HTTP_HEAD, HTTP_POST, HTTP_PUT, HTTP_PATCH, HTTP_DELETE, HTTP_OPTIONS };

      |                                       ^~~~~~~~~

exit status 1

为开发板 NodeMCU 1.0 (ESP-12E Module) 编译时出错。

下载 https://github.com/esp8266/Arduino/releases/download/3.0.1/esp8266-3.0.1.zip 时出错

java.lang.RuntimeException: java.lang.Exception: 下载 https://github.com/esp8266/Arduino/releases/download/3.0.1/esp8266-3.0.1.zip 时出错

        at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:179)

        at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.Exception: 下载 https://github.com/esp8266/Arduino/releases/download/3.0.1/esp8266-3.0.1.zip 时出错

        at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:149)

        at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:83)

        at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:60)

        at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:104)

        at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:172)

        ... 1 more

Caused by: javax.net.ssl.SSLException: SSL peer shut down incorrectly

        at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:596)

        at sun.security.ssl.InputRecord.read(InputRecord.java:532)

        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975)

        at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:933)

        at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)

        at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)

        at java.io.BufferedInputStream.read(BufferedInputStream.java:345)

        at sun.net.www.MeteredStream.read(MeteredStream.java:134)

        at java.io.FilterInputStream.read(FilterInputStream.java:133)

        at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3444)

        at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3437)

        at cc.arduino.utils.network.FileDownloader.readStreamCopyTo(FileDownloader.java:268)

        at cc.arduino.utils.network.FileDownloader.openConnectionAndFillTheFile(FileDownloader.java:247)

        at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:182)

        at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:129)

        at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:147)

        ... 5 more



在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-11-28 05:33 , Processed in 0.155173 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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