Appearance
struct osFaultRecord_t
CPU state at the last crash. More...
#include <kernel/fault.h>
Public Attributes
| Name | |
|---|---|
| uint32_t | boot |
| uint32_t | uptime_ms |
| uint32_t | pc |
| uint32_t | lr |
| uint32_t | psr |
| uint32_t | cfsr |
| uint32_t | hfsr |
| uint32_t | far |
| uint16_t | line |
| uint8_t | kind |
| uint8_t | _pad |
| char[(12)] | thread |
Detailed Description
cpp
struct osFaultRecord_t;CPU state at the last crash.
Lives in reboot-safe RAM. The newest crash overwrites the previous one: each crash ends its boot, so the record always describes the run that ended last by a crash. Compare boot with osGetRebootCount() to tell whether that was the previous boot.
Public Attributes Documentation
variable boot
cpp
uint32_t osFaultRecord_t::bootosGetRebootCount() of the boot that crashed.
variable uptime_ms
cpp
uint32_t osFaultRecord_t::uptime_msKernel tick count at the crash.
variable pc
cpp
uint32_t osFaultRecord_t::pcFault exceptions: the faulting instruction from the exception frame. Assert and pure virtual call: the return address into the caller. 0 where neither exists.
variable lr
cpp
uint32_t osFaultRecord_t::lrFault exceptions: LR from the exception frame, else 0.
variable psr
cpp
uint32_t osFaultRecord_t::psrFault exceptions: xPSR from the exception frame, else 0.
variable cfsr
cpp
uint32_t osFaultRecord_t::cfsrSCB->CFSR and SCB->HFSR at the crash; 0 on cores without them.
variable hfsr
cpp
uint32_t osFaultRecord_t::hfsrvariable far
cpp
uint32_t osFaultRecord_t::farFaulting data address (BFAR or MMFAR) if CFSR marks it valid, else 0.
variable line
cpp
uint16_t osFaultRecord_t::lineSource line of a failed configASSERT, else 0.
variable kind
cpp
uint8_t osFaultRecord_t::kindosFaultKind_t
variable _pad
cpp
uint8_t osFaultRecord_t::_padvariable thread
cpp
char osFaultRecord_t::thread[(12)]Running thread, or the overflowing one for osFaultStackOverflow; "" before the scheduler runs.