Arduino NodeMCU ESP8266WiFi Exception (3)。wifi无法使用,无限重启

今天在用Arduino 开发 NodeMcu的MQTT模块时遇到Wifi模块异常
代码如下:

//报错代码
void setup() {
  Serial.begin(115200);

  // Set WiFi to station mode and disconnect from an AP if it was previously connected
  WiFi.mode(WIFI_STA);
  WiFi.begin("ssid","pwd");//该行报错!!!!!!!!!!
  delay(100);

  Serial.println("Setup done");
}
//异常信息
14:25:37.973 -> 
14:25:37.973 -> --------------- CUT HERE FOR EXCEPTION DECODER ---------------
14:25:37.973 -> 
14:25:37.973 -> Exception (3):
14:25:37.973 -> epc1=0x40100718 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40043c09 depc=0x00000000
14:25:37.973 -> 
14:25:37.973 -> >>>stack>>>
14:25:37.973 -> 
14:25:37.973 -> ctx: cont
14:25:37.973 -> sp: 3ffffb90 end: 3fffffc0 offset: 0190
14:25:38.007 -> 3ffffd20:  feefeffe feefeffe feefeffe feefeffe  
14:25:38.007 -> 3ffffd30:  feefeffe feefeffe feefeffe feefeffe  
14:25:38.007 -> 3ffffd40:  feefeffe feefeffe feefeffe 3ffffef0  
14:25:38.007 -> 3ffffd50:  0000049c 0000049c 00000020 40100900  
14:25:38.007 -> 3ffffd60:  feefeffe feefeffe feefeffe feefeffe  
14:25:38.007 -> 3ffffd70:  00000002 400042db 000003fd 40100b50  
14:25:38.007 -> 3ffffd80:  40004b31 00001000 000003fd 4010027c  
14:25:38.007 -> 3ffffd90:  40105b24 feefeffe feefeffe 4022ded9  
14:25:38.042 -> 3ffffda0:  40100c2d 4022dfc3 3ffef03c 0000049c  
14:25:38.042 -> 3ffffdb0:  000003fd 3ffffef0 3ffef03c 4022dfa6  
14:25:38.042 -> 3ffffdc0:  ffffff00 55aa55aa 0000000e 00000020  
14:25:38.042 -> 3ffffdd0:  00000020 00000045 00000045 aa55aa55  
14:25:38.042 -> 3ffffde0:  000003ff 4022e4a6 3ffef03c 3ffef03c  
14:25:38.042 -> 3ffffdf0:  000000ff 000000db 000000db 40100647  
14:25:38.042 -> 3ffffe00:  40100c2d 00000001 3ffef04c 4022e6c6  
14:25:38.076 -> 3ffffe10:  00000008 3ffef03c 000000ff 3ffffef0  
14:25:38.076 -> 3ffffe20:  3fffff10 3ffef073 0000000e 00000020  
14:25:38.076 -> 3ffffe30:  3ffef0fc 3fffff51 00000001 4022e776  
14:25:38.076 -> 3ffffe40:  3ffffef0 40239d20 00000000 00000008  
14:25:38.076 -> 3ffffe50:  3ffef43c 3fffff10 3fff5374 4022e745  
14:25:38.076 -> 3ffffe60:  3ffef03c 4022e7ac 3ffe84cc 3ffe860c  
14:25:38.076 -> 3ffffe70:  4020198e 3ffe860c 3ffe8614 402018e3  
14:25:38.076 -> 3ffffe80:  69706373 5f6e6573 74736574 40100031  
14:25:38.111 -> 3ffffe90:  feefeffe feefeffe 3ffef30c 3ffee55c  
14:25:38.111 -> 3ffffea0:  69706373 336e6573 0000002e 40100943  
14:25:38.111 -> 3ffffeb0:  00000020 00000062 00000062 aa55aa55  
14:25:38.111 -> 3ffffec0:  000003fd 402302ef 00000000 40100304  
14:25:38.111 -> 3ffffed0:  3ffe84e0 3ffee4e0 3ffe8725 4023030a  
14:25:38.111 -> 3ffffee0:  e432f800 fe989d95 feefeffe feefeffe  
14:25:38.111 -> 3ffffef0:  6850716c 00656e6f 000000db 40100647  
14:25:38.111 -> 3fffff00:  00000001 3ffeef1c 3ffef03c 3ffee3a4  
14:25:38.145 -> 3fffff10:  34333231 38373635 00000000 401008cb  
14:25:38.145 -> 3fffff20:  00000020 00000045 00000045 aa55aa55  
14:25:38.145 -> 3fffff30:  007a1200 764d9c18 00000000 4010028c  
14:25:38.145 -> 3fffff40:  401050a9 001808fd 3ffee400 00000000  
14:25:38.145 -> 3fffff50:  3ffedd00 3ffee400 00001381 00000002  
14:25:38.145 -> 3fffff60:  00000004 00000000 3ffee2f8 00000001  
14:25:38.145 -> 3fffff70:  40202a6d 00001388 3ffee3a4 3ffee3a4  
14:25:38.179 -> 3fffff80:  3fffdad0 00000000 3ffee2f8 40201069  
14:25:38.179 -> 3fffff90:  3fffdad0 00000000 3ffee364 40201093  
14:25:38.179 -> 3fffffa0:  feefeffe feefeffe feefeffe 40202578  
14:25:38.179 -> 3fffffb0:  feefeffe feefeffe 3ffe84e4 40100b85  
14:25:38.179 -> <<<stack<<<
14:25:38.179 -> 
14:25:38.179 -> --------------- CUT HERE FOR EXCEPTION DECODER ---------------
14:25:38.213 -> 
14:25:38.213 ->  ets Jan  8 2013,rst cause:2, boot mode:(3,7)
14:25:38.213 -> 
14:25:38.213 -> load 0x4010f000, len 3584, room 16 
14:25:38.213 -> tail 0
14:25:38.213 -> chksum 0xb0
14:25:38.213 -> csum 0xb0
14:25:38.213 -> v5d3af165
14:25:38.213 -> ~ld
14:25:38.281 -> 

解决后更新

ESP8266WiFi GitHub源码

经过多次研究,发现换了块板子就行了,估计蓝牙模块损坏了,但是用lua可以连接wifi

最近解决方案 (2021年5月6日 17:03:00)

使用 arduino 对 nodemcu 重新刷入esp8266的固件即可解决

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

java小庆

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值