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

Snapshot of ECC error state (filled by ra8_sram_get_status). More...

#include <ra8_sram.h>

Data Fields

uint16_t raw_esr
 Raw SRAMESR value.
uint8_t one_bit_mask
 Bit i = SRAMi 1-bit error.
uint8_t two_bit_mask
 Bit i = SRAMi 2-bit error.
uintptr_t addr_1bit [k_ra8_sram_bank_count]
 Captured 1-bit error address per bank.
uintptr_t addr_2bit [k_ra8_sram_bank_count]
 Captured 2-bit error address per bank.

Detailed Description

Snapshot of ECC error state (filled by ra8_sram_get_status).

Bits in raw_esr follow the SRAMESR layout exactly (HUM Ch 58.2.12 p 3535) – see ra8_sram_esr_bit_t in ra8_sram_regs.h. The decoded helpers one_bit_mask / two_bit_mask collapse those 8 bits into a per-bank bitmap (bit i = bank i).

addr_1bit[bank] / addr_2bit[bank] carry the absolute faulting address (EAR offset + 0x2200_0000), or 0 if no error has fired for that bank/slot.

Definition at line 189 of file ra8_sram.h.

Field Documentation

◆ addr_1bit

uintptr_t ra8_sram_status_t::addr_1bit[k_ra8_sram_bank_count]

Captured 1-bit error address per bank.

Definition at line 193 of file ra8_sram.h.

Referenced by ra8_sram_dispatch_from_esr(), and ra8_sram_get_status().

◆ addr_2bit

uintptr_t ra8_sram_status_t::addr_2bit[k_ra8_sram_bank_count]

Captured 2-bit error address per bank.

Definition at line 194 of file ra8_sram.h.

Referenced by ra8_sram_dispatch_from_esr(), and ra8_sram_get_status().

◆ one_bit_mask

uint8_t ra8_sram_status_t::one_bit_mask

Bit i = SRAMi 1-bit error.

Definition at line 191 of file ra8_sram.h.

Referenced by internal_mecc_inject(), internal_sample(), and ra8_sram_get_status().

◆ raw_esr

uint16_t ra8_sram_status_t::raw_esr

Raw SRAMESR value.

Definition at line 190 of file ra8_sram.h.

Referenced by internal_mecc_inject(), internal_sample(), ra8_sram_dispatch_from_esr(), and ra8_sram_get_status().

◆ two_bit_mask

uint8_t ra8_sram_status_t::two_bit_mask

Bit i = SRAMi 2-bit error.

Definition at line 192 of file ra8_sram.h.

Referenced by internal_mecc_inject(), internal_sample(), and ra8_sram_get_status().


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