|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
The .noinit cross-reset post-mortem record. More...
#include <ra8_crashlog.h>
Data Fields | |
| uint32_t | magic |
| k_ra8_crashlog_magic_valid if valid (not CRC-covered). | |
| uint32_t | crc |
| CRC-32 over boot_loops..end of record. | |
| uint32_t | boot_loops |
| Monotonic recorded-fault counter; cleared by a claim. | |
| ra8_exception_last_t | fault |
| Embedded copy of the decoded fault / NMI snapshot. | |
The .noinit cross-reset post-mortem record.
Byte layout is deliberate: magic is the standalone integrity sentinel and is NOT covered by crc; crc is a CRC-32 over every byte from boot_loops to the end of the record, so the sentinel and the checksum are two independent integrity signals. A record is trustworthy only when magic == k_ra8_crashlog_magic_valid AND the recomputed CRC equals crc.
Definition at line 143 of file ra8_crashlog.h.
| uint32_t ra8_crashlog_record_t::boot_loops |
Monotonic recorded-fault counter; cleared by a claim.
Definition at line 146 of file ra8_crashlog.h.
Referenced by fc_print_record(), main(), and ra8_crashlog_safe_mode_requested().
| uint32_t ra8_crashlog_record_t::crc |
CRC-32 over boot_loops..end of record.
Definition at line 145 of file ra8_crashlog.h.
| ra8_exception_last_t ra8_crashlog_record_t::fault |
Embedded copy of the decoded fault / NMI snapshot.
Definition at line 147 of file ra8_crashlog.h.
Referenced by fc_print_record(), and main().
| uint32_t ra8_crashlog_record_t::magic |
k_ra8_crashlog_magic_valid if valid (not CRC-covered).
Definition at line 144 of file ra8_crashlog.h.