|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Directories | |
| src | |
SRAM ECC fault injection and detection (#130). Where ecc_monitor_demo only brings ECC up and reads a clean status, this deliberately provokes a memory error and proves the hardware error path latches it – which is what the SIL-3 / DAL-B bar actually asks for.
It enables full SECDED ECC with zero-init on spare SRAM bank 2, chosen because the linker leaves banks 2 and 3 unused, so corrupting a probe line there is safe. It then runs the HUM Ch 58.3.4 ECC decoder self-test twice – once with a 1-bit correctable injection, once with a 2-bit uncorrectable one – clearing SRAMESR in between so each is independently proven, and reports the decoded per-bank masks.
An emulator cannot observe the syndrome data write that distinguishes a 1-bit fault from a 2-bit one, because on-chip SRAM is host-backed memory rather than an MMIO hook; it therefore latches both ESR slots on any self-test. So the following are bench-only:
Bare EK-RA8D2; no shields or external transceivers.