When _checkAndPrintCoreDump() detects a core dump at boot, it only logs the crash data. The binary is not saved anywhere, so it is lost on the next restart or manual clear.
Proposed: on detection, immediately save the raw binary to /crashes/<unix_ts>/ alongside a metadata JSON, then erase the partition. Cap the number of stored crash folders to avoid filling LittleFS.
Reference: src/crashmonitor.cpp:336.
When
_checkAndPrintCoreDump()detects a core dump at boot, it only logs the crash data. The binary is not saved anywhere, so it is lost on the next restart or manual clear.Proposed: on detection, immediately save the raw binary to
/crashes/<unix_ts>/alongside a metadata JSON, then erase the partition. Cap the number of stored crash folders to avoid filling LittleFS.Reference:
src/crashmonitor.cpp:336.