Upon the crash system enters panic state, prints some information and halts or reboots depending configuration.
Core dump contains snapshots of all tasks in the system at the moment of failure. Snapshots include tasks control blocks (TCB) and stacks. So it is possible to find out what task, at what instruction (line of code) and what callstack of that task lead to the crash.
ESP-IDF provides special script espcoredump.py to help users to retrieve and analyse core dumps. This tool provides two commands for core dumps analysis:
-
info_corefile- prints crashed task’s registers, callstack, list of available tasks in the system, memory regions and contents of memory store

本文介绍LoRa网关的功能调试及后续的加固测试工作,并详细探讨了ESP-IDF中core dump的配置、保存及分析方法。通过espcoredump.py工具,用户可以获取崩溃时刻的任务快照,包括任务控制块、堆栈等关键信息,进而深入分析系统崩溃的原因。
最低0.47元/天 解锁文章
2007

被折叠的 条评论
为什么被折叠?



