feat(Telemetry): backtrace, abort reason and pre-crash snapshot in crash reports (F-070)
Crash reports only carried the coredump's PC/cause/vaddr, which for every abort() is panic_abort()'s own write to 0x0 - so all aborts looked the same. - Read the coredump backtrace (up to 16 PCs) and crashing ELF SHA prefix - Wrap esp_system_abort (-Wl,--wrap) to keep the abort/assert/stack-overflow message in RTC_NOINIT memory across the reboot - TelemetryTask snapshots uptime/free heap/largest block/min free heap into the same RTC block every second - Reported in MQTT boot_report and SD boot log as crash.backtrace, crash.elf_sha256 and a new pre_crash object (additive) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -61,6 +61,9 @@ build_flags_common =
|
||||
-std=gnu++14
|
||||
-DCORE_DEBUG_LEVEL=0
|
||||
-DCONFIG_ASYNC_TCP_RUNNING_CORE=0
|
||||
; F-070: route every abort()/assert/stack-overflow through our wrapper so the
|
||||
; reason string survives the reboot (src/Telemetry/CrashBreadcrumbs.cpp)
|
||||
-Wl,--wrap=esp_system_abort
|
||||
|
||||
; ───────────────────────────────────────────────────────────────────────────────
|
||||
; VESPER Standard v1 — Kincony KC868-A6 (ESP32-D0WD-V3, 4MB Flash)
|
||||
|
||||
Reference in New Issue
Block a user