Expand description
The XCR1 crash report format. Capture writes to caller-provided storage.
Structs§
- Boot
Guard - Crash-loop counter in a separate retained slot. An invalid slot counts as zero.
- Header
- Limits
- Record
- Writer
- Writes the payload in place. Dropping this writer before
finishleaves the record invalid.
Enums§
Constants§
- BOOT_
GUARD_ SIZE - CRASH_
LOOP_ LIMIT - ESPRESSIF_
RECORD_ CAPACITY - FRAMES_
TRUNCATED - HEADER_
SIZE - LOG_
SKIPPED_ CONTENTION - MAGIC
- MESSAGE_
TRUNCATED - NATIVE_
RECORD_ CAPACITY - SECONDARY_
CORE_ UNHALTED - STACK_
TRUNCATED - VERSION
Functions§
- complete_
reset_ reason - Fill a missing reset reason and recompute the checksum of a valid record. Returns the total record length, which can be smaller than the slot.
- invalidate
- Clear the retained magic. The caller must exclude other slot users.