4 Method for saving crash scene;¶
4.1 Save crash scene to FLASH;¶
menuconfig configuration;
(Top) → RTOS → RT-Thread Components → Utilities → Enable save assert context in flash.
Space allocation (file system);
Configure the space and partition used for crash saving in the flash_map excel table;,Save directly as SIZE/partition/subdirectory in file mode;(仅供参考,flash_map excel表,目前仅solution方案支持),You can create file storage by yourself;。
Configure the space and partition used for crash saving in the flash_map excel table;,You can use the shared buffer method;,Fill in the partition name of the shared buffer in the partition;,The address/SIZE/partition type can be automatically obtained using the formula in the figure below;Data export;
After the terminal crashes, it will save the data to the configured location;,After restarting, you can use the mobile APPSiFli_BLE
to export;,SiFli APP的安装包apk和源码可以通过github下载:
SiFli APP Demo Release
SiFli_OTA_APP Demo
步骤如下:
Data parsing;
The exported file can be parsed with the following tool, and then directly use the trace32 tool for crash scene analysis;
The analysis method can refer to the chapter;:
6.1 用Trace32恢复Hcpu死机现场