我如何修复 PlatformIO 上 ESP8266 WiFi.begin() rst cause 4
我遇到了 PlatformIO ESP8266 固件的问题,在调用 WiFi.begin() 几秒后导致 rst cause 4 重置:
esp8266_reset_log.txt
ets Jan 8 2013,rst cause:4, boot mode:(3,2)
wdt reset
load 0x4010f000, len 3460, room 16
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4
tail 4
chksum 0xc9
csum 0+c9
v0007e660
~ld
7以及随后的固件重启。问题无限重复。
在我的情况下,问题是我在 platformio.ini 中将 WiFi 列为 lib_deps 依赖项:
platformio_lib_deps.ini
lib_deps =
WiFi而不是包含 #include <ESP8266WiFi.h> 而不是 #include <WiFi.h>。有关更多详细信息,请参见如何修复 PlatformIO ESP8266 WiFi.h: No Such File or Directory。
Check out similar posts by category:
Electronics, ESP8266/ESP32, PlatformIO
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow