|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Directories | |
| src | |
Watches the VCC rail through voltage monitor 1 (PVD1) in the safest possible configuration and reports live status once a second. g_lvd_ok / g_lvd_mon_above / g_lvd_det / g_lvd_cfg_err / g_lvd_heartbeat mirror the result for a headless J-Link probe; LED1 toggles on a healthy read and LED2 on a below-threshold one.
The safety property is the design: the response is k_ra8_lvd_response_none, so no reset, no NMI and no maskable interrupt is ever armed. Watching a brown-out therefore cannot reset or brick the board, which means you can lower VCC toward the 2.80 V threshold with a bench supply and watch PVDmSR.DET latch the crossing while the board stays up. The threshold is chosen low enough that a healthy 3.3 V rail sits well above it.
The PVD control registers are write-protected by PRCR.PRC3, so the demo unlocks that protection group around channel init and re-locks it immediately after. Forgetting either half is the usual reason a PVD configuration appears to have been accepted and then reads back as its reset value.
No external hardware required for the steady-state read.