ESP32-S2系统加固实践(二) ESP32 Core Dump to FLASH

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

LoRa网关功能调试完成了,需要加固,测试。

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

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值