ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_exception_frame_t Struct Reference

Stacked registers pushed by the Cortex-M exception entry. More...

#include <ra8_exception.h>

Data Fields

uint32_t r0
 General-purpose register R0.
uint32_t r1
 General-purpose register R1.
uint32_t r2
 General-purpose register R2.
uint32_t r3
 General-purpose register R3.
uint32_t r12
 Scratch register R12.
uint32_t lr
 Link register (return addr).
uint32_t pc
 Program counter at fault.
uint32_t xpsr
 Program status register.

Detailed Description

Stacked registers pushed by the Cortex-M exception entry.

Layout matches the basic (non-FP) stack frame described in the Arm Architecture Reference Manual section B1.5.6. The FPU variant adds S0..S15 + FPSCR but we log only the core GPRs – FPU state is rarely the root cause of a fault and makes the dump three times larger.

Definition at line 56 of file ra8_exception.h.

Field Documentation

◆ lr

uint32_t ra8_exception_frame_t::lr

Link register (return addr).

Definition at line 62 of file ra8_exception.h.

Referenced by fc_make_synth(), internal_log_fault_dump(), and ra8_exception_report().

◆ pc

uint32_t ra8_exception_frame_t::pc

Program counter at fault.

Definition at line 63 of file ra8_exception.h.

Referenced by fc_make_synth(), fc_print_record(), internal_log_fault_dump(), main(), and ra8_exception_report().

◆ r0

uint32_t ra8_exception_frame_t::r0

General-purpose register R0.

Definition at line 57 of file ra8_exception.h.

Referenced by internal_log_fault_dump(), and ra8_exception_report().

◆ r1

uint32_t ra8_exception_frame_t::r1

General-purpose register R1.

Definition at line 58 of file ra8_exception.h.

Referenced by internal_log_fault_dump(), and ra8_exception_report().

◆ r12

uint32_t ra8_exception_frame_t::r12

Scratch register R12.

Definition at line 61 of file ra8_exception.h.

Referenced by internal_log_fault_dump(), and ra8_exception_report().

◆ r2

uint32_t ra8_exception_frame_t::r2

General-purpose register R2.

Definition at line 59 of file ra8_exception.h.

Referenced by internal_log_fault_dump(), and ra8_exception_report().

◆ r3

uint32_t ra8_exception_frame_t::r3

General-purpose register R3.

Definition at line 60 of file ra8_exception.h.

Referenced by internal_log_fault_dump(), and ra8_exception_report().

◆ xpsr

uint32_t ra8_exception_frame_t::xpsr

Program status register.

Definition at line 64 of file ra8_exception.h.

Referenced by internal_log_fault_dump(), and ra8_exception_report().


The documentation for this struct was generated from the following file: