Arduino ESP8266 ESP32 Exception错误解析(CUT HERE FOR EXCEPTION DECODER)
Posted 单片机菜鸟哥
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Arduino ESP8266 ESP32 Exception错误解析(CUT HERE FOR EXCEPTION DECODER)相关的知识,希望对你有一定的参考价值。
忘记过去,超越自己
- ❤️ 博客主页 单片机菜鸟哥,一个野生非专业硬件IOT爱好者 ❤️
- ❤️ 本篇创建记录 2023-03-11 ❤️
- ❤️ 本篇更新记录 2022-03-11 ❤️
- 🎉 欢迎关注 🔎点赞 👍收藏 ⭐️留言📝
- 🙏 此博客均由博主单独编写,不存在任何商业团队运营,如发现错误,请留言轰炸哦!及时修正!感谢支持!
- 🔥 Arduino ESP8266教程累计帮助过超过1W+同学入门学习硬件网络编程,入选过选修课程,刊登过无线电杂志 🔥
1. 前言
博主今天在调试Arduino ESP8266代码的时候,出现了一些乱码异常。
21:11:42.158 -> --------------- CUT HERE FOR EXCEPTION DECODER ---------------
21:11:42.158 ->
21:11:42.158 -> Exception (28):
21:11:42.158 -> epc1=0x4020cd3e epc2=0x00000000 epc3=0x00000000 excvaddr=0x0000000c depc=0x00000000
21:11:42.158 ->
21:11:42.158 -> >>>stack>>>
21:11:42.158 ->
21:11:42.158 -> ctx: cont
21:11:42.158 -> sp: 3ffff880 end: 3fffffc0 offset: 0190
21:11:42.158 -> 3ffffa10: 00000006 3ffeed14 00000020 4020f250
21:11:42.158 -> 3ffffa20: 3ffffb20 0000000d 3ffffa80 4020b595
21:11:42.205 -> 3ffffa30: 00000048 00000000 3ffe8ea1 00000007
21:11:42.205 -> 3ffffa40: 3ffe8304 00000000 3ffffb20 4020f31a
21:11:42.205 -> 3ffffa50: 4022beae 3ffe8859 3ffeefe4 00000000
21:11:42.205 -> 3ffffa60: 3ffffbc0 00000000 3ffffbc0 3ffe8862
21:11:42.205 -> 3ffffa70: 00000000 3ffe8861 3ffffb20 4020f74b
21:11:42.205 -> 3ffffa80: 00000000 ffffffff 00000000 00000000
21:11:42.205 -> 3ffffa90: 00000048 00000050 3f302073 4020f31a
21:11:42.205 -> 3ffffaa0: 3ffefb7e 3fffff30 3ffffad0 00000001
21:11:42.205 -> 3ffffab0: ffffffff 00000000 4022bd53 4020f250
21:11:42.205 -> 3ffffac0: 00fffbc0 3fffff30 3ffffb20 4020b5d0
21:11:42.205 -> 3ffffad0: 0000000d 3ffec4c0 00000000 0000000c
21:11:42.252 -> 3ffffae0: 3ffffc50 3ffffc20 00000010 3ffe8304
21:11:42.252 -> 3ffffaf0: 00000048 00000009 00000001 3ffefe20
21:11:42.252 -> 3ffffb00: 3ffe8d52 4022ae5f 3ffec4c0 3ffe87ae
21:11:42.252 -> 3ffffb10: 3ffee7bc 3ffe8304 00000040 4020cced
21:11:42.252 -> 3ffffb20: 3ffffc0f 0000000d 00000000 ffff0208
21:11:42.252 -> 3ffffb30: 3ffffbd0 0000003f 00302073 4010017c
21:11:42.252 -> 3ffffb40: 40101865 4020f97d 00000002 40101430
21:11:42.252 -> 3ffffb50: 3ffe8d52 401046c7 4022bd53 00000001
21:11:42.252 -> 3ffffb60: 000007b0 000000f6 000000f6 401006bb
21:11:42.252 -> 3ffffb70: 000007b0 3ffec4e8 00000000 00000041
21:11:42.299 -> 3ffffb80: 3ffffc50 3ffffc40 00000014 3ffe8304
21:11:42.299 -> 3ffffb90: 0000000d 00000008 3ffe87cf 4020cd30
21:11:42.299 -> 3ffffba0: 3ffffc50 3ffffc20 00000008 3ffe87ae
21:11:42.299 -> 3ffffbb0: 3ffee654 3ffee7bc 3ffe87cf 4020bb90
21:11:42.299 -> 3ffffbc0: 3ffee69c 00000008 7fffffb7 40205d44
21:11:42.299 -> 3ffffbd0: 6469755b 3537623d 37643539 65333134
21:11:42.299 -> 3ffffbe0: 37376263 61636236 37633762 31333366
21:11:42.299 -> 3ffffbf0: 38626536 6f742632 3d636970 74736574
21:11:42.299 -> 3ffffc00: 70797426 26313d65 3d67736d 008bb5e6
21:11:42.299 -> 3ffffc10: 3ffffc50 3ffffc20 00000008 00000000
21:11:42.346 -> 3ffffc20: 3ffeedc8 3ffeed90 3ffee654 0000000d
21:11:42.346 -> 3ffffc30: 00000000 00000000 3ffef90c 40210028
21:11:42.346 -> 3ffffc40: 3ffe8856 00000042 3ffffc20 3ffffc50
21:11:42.346 -> 3ffffc50: 3fffff30 3ffe8713 50302073 3ffe87ae
21:11:42.346 -> 3ffffc60: 3ffee654 3ffee7bc 3ffe87cf 40202bbf
21:11:42.346 -> 3ffffc70: 3ffef6ac 3ffeed90 00000000 00000000
21:11:42.346 -> 3ffffc80: 00000000 3ffef90c 3ffffd74 402063de
21:11:42.346 -> 3ffffc90: 00000000 0000196e 00000000 3ffef90c
21:11:42.346 -> 3ffffca0: 3ffef90c 3ffeed9c 3ffeed90 40217820
21:11:42.346 -> 3ffffcb0: 00000000 00000011 00000000 3ffffd74
21:11:42.393 -> 3ffffcc0: 3ffef950 3ffefc00 3ffeed90 40219010
21:11:42.393 -> 3ffffcd0: 00000001 00000000 0000000a 00000000
21:11:42.393 -> 3ffffce0: 00000001 00000000 0000000a 00000000
21:11:42.393 -> 3ffffcf0: 00000006 3ffeed14 00000020 40100974
21:11:42.393 -> 3ffffd00: 00000000 a0000000 00000000 0000001c
21:11:42.393 -> 3ffffd10: 00001000 3ffeed90 00001000 00000000
21:11:42.393 -> 3ffffd20: 3ffffe80 00000000 3ffffe80 4020f31a
21:11:42.393 -> 3ffffd30: 0000a000 3ffffe23 00000000 4021907e
21:11:42.393 -> 3ffffd40: 3ffeed90 00000000 4020b4a5 00000001
21:11:42.393 -> 3ffffd50: 3ffffe80 00000001 3ffffe80 4020f31a
21:11:42.393 -> 3ffffd60: 3ffffde0 3ffffe22 3ffffd90 00000000
21:11:42.440 -> 3ffffd70: 00000860 3ffefc00 3ffefc80 4020f250
21:11:42.440 -> 3ffffd80: 3ffffe80 3ffffe22 3ffffde0 4020b5d0
21:11:42.440 -> 3ffffd90: 00000001 00000132 00000132 0000000c
21:11:42.440 -> 3ffffda0: 3ffe8304 00000000 0000000a 4023fd30
21:11:42.440 -> 3ffffdb0: 3ffffe23 00000001 00000000 4010093f
21:11:42.440 -> 3ffffdc0: 00000001 00000000 00000020 3ffe87ad
21:11:42.440 -> 3ffffdd0: 00000000 3ffe87ac 3ffffe80 4020f74b
21:11:42.440 -> 3ffffde0: 00000000 ffffffff ffffffff 00000000
21:11:42.440 -> 3ffffdf0: 00000001 0000000d 3f302064 402092de
21:11:42.440 -> 3ffffe00: 3ffe864c 3ffee7bc 3ffffe30 40204fbc
21:11:42.440 -> 3ffffe10: 3ffffec8 3ffee7bc 3ffffe30 40205071
21:11:42.487 -> 3ffffe20: 00310001 3ffee7bc 3ffe8792 40201125
21:11:42.487 -> 3ffffe30: 00000000 00000000 00000000 3ffef600
21:11:42.487 -> 3ffffe40: 3fffff10 3fffff00 0000000c 3ffe8304
21:11:42.487 -> 3ffffe50: 00000001 00000009 00000001 70747400
21:11:42.487 -> 3ffffe60: 3ffffe00 80efeffe 3ffef900 3ffee8ec
21:11:42.487 -> 3ffffe70: 40201060 4020101c 3ffee650 4020bb90
21:11:42.487 -> 3ffffe80: 3fffff3d 3ffee7bc 7ffffff2 ffff0208
21:11:42.487 -> 3ffffe90: 3fffff30 7fffffff ffffffff 80205c01
21:11:42.487 -> 3ffffea0: 00000000 0064000a 80fffe00 40205fb1
21:11:42.487 -> 3ffffeb0: 80fe8661 00000001 00000000 313a3100
21:11:42.534 -> 3ffffec0: 31343a31 80000000 313a3100 31343a31
21:11:42.534 -> 3ffffed0: 3ffe8713 3fffff30 00000000 401006bb
21:11:42.534 -> 3ffffee0: 402335fe 3ffee650 3fffff10 00000005
21:11:42.534 -> 3ffffef0: 3ffe87ae 3ffe87cf 00000000 402015f9
21:11:42.534 -> 3fffff00: 40202b60 3ffe8713 3fffff30 00000001
21:11:42.534 -> 3fffff10: 00000033 00000133 00000000 3ffee8ec
21:11:42.534 -> 3fffff20: 40201060 4020101c 3ffee650 4020175f
21:11:42.534 -> 3fffff30: e88bb5e6 bbe495af 81a0e7a3 40200031
21:11:42.534 -> 3fffff40: 00000027 0000000d 3ffee7bc 40205ea0
21:11:42.534 -> 3fffff50: 6d00a8c0 00ffffff 0100a8c0 40205f3c
21:11:42.581 -> 3fffff60: 3ffe8678 3ffee780 3ffee7bc 402014e8
21:11:42.581 -> 3fffff70: 40209658 6d00a8c0 3ffee7bc 40205ea0
21:11:42.581 -> 3fffff80: 3fffdad0 00000000 3ffee7bc 3ffee8ec
21:11:42.581 -> 3fffff90: 3fffdad0 00000000 3ffee7bc 4020153a
21:11:42.581 -> 3fffffa0: 3fffdad0 00000000 3ffee8ac 402072c4
21:11:42.581 -> 3fffffb0: feefeffe feefeffe 3ffe84e4 40100bf9
21:11:42.581 -> <<<stack<<<
21:11:42.581 ->
21:11:42.581 -> --------------- CUT HERE FOR EXCEPTION DECODER ---------------
这种stack乱码肯定是没有办法看以及查看代码哪里错误了。所以还是要有一个解析器去解决问题。
2. 使用EspExceptionDecoder
2.1 下载 EspExceptionDecoder
2.2 安装 EspExceptionDecoder
这属于arduino的一种工具,所以需要安装在安装路径tools目录下。
2.3 把乱码错误信息复制到工具中
这里就是我们对应的代码错误地方。又可以愉快地调试代码了。
以上是关于Arduino ESP8266 ESP32 Exception错误解析(CUT HERE FOR EXCEPTION DECODER)的主要内容,如果未能解决你的问题,请参考以下文章
Arduino IDE下载安装ESP8266/32慢的解决办法
ESP8266和ESP32基于Arduino EspNow组播通讯
Arduino esp8266/esp32 自定义IO组异步网页控制管理