PER Firmware
Loading...
Searching...
No Matches
PER Fault Library

The faults_common module implements the FIDR (Fault Isolation, Detection, and Recovery) system. It manages the lifecycle of system-wide faults using a robust Finite State Machine (FSM) to prevent flickering and ensure deterministic fault handling.

Fault declarations live in generators/configs/. The generator writes fault_data.c and fault_data.h to this module’s generated/ directory.

Fault FSM Diagram

Usage

Note
Each node is assigned a specific range of faults (MY_FAULT_START to MY_FAULT_END). Only the "owner" node can update the state of these faults, ensuring a single source of truth.