11#include <soc/soc_caps.h>
17static constexpr uint8_t CRASH_REPORT_MAX_BACKTRACE = 16;
19static constexpr uint8_t CRASH_REPORT_MAX_CORES = SOC_CPU_CORES_NUM;
21static constexpr uint8_t CRASH_REPORT_MAX_CORES = 1;
47 std::array<uint32_t, CRASH_REPORT_MAX_BACKTRACE>
addresses{};
59 std::array<CrashCoreBacktrace, CRASH_REPORT_MAX_CORES>
cores{};
std::vector< uint8_t > & out
void crash_report_clear()
Mark the report read; it also no longer survives a reboot.
CrashReason
Sent as is over the native API.
@ CRASH_REASON_HARDWARE_WATCHDOG
@ CRASH_REASON_TASK_WATCHDOG
@ CRASH_REASON_SOFT_WATCHDOG
@ CRASH_REASON_INTERRUPT_WATCHDOG
CrashReportFlag
Sent as is over the native API.
@ CRASH_REPORT_FLAG_BUILD_MATCHES
@ CRASH_REPORT_FLAG_PRESENT
@ CRASH_REPORT_FLAG_CAUSE
@ CRASH_REPORT_FLAG_FAULT_ADDRESS
bool crash_report_get(CrashReport &out)
The previous boot's crash; false when there is none or it was read. Implemented per platform.
std::array< uint32_t, CRASH_REPORT_MAX_BACKTRACE > addresses
std::array< CrashCoreBacktrace, CRASH_REPORT_MAX_CORES > cores