Hello,
It sounds like you are deep into the safety integration of the S32G2, which is no small feat. Transitioning from the MPC series to the S32G involves a shift toward more complex hardware-software interaction, especially with the ARM Cortex-A53 clusters.
Here is a breakdown of your points to help clarify the safety workflow.
1. Safety Mechanisms Connected to FCCU (NCF)
Your understanding is mostly correct. If a safety mechanism (SM) is purely hardware-based (e.g., ECC on a memory array) and its output is hard-wired to an FCCU Non-Critical Fault (NCF) channel, you do not need "diagnostic test code" to detect the failure.
However, the "Main Tasks" you listed are missing one critical phase: Safety Integrity Validation (Diagnostic Testing).
- The Gap: While the hardware detects the fault, ISO 26262 often requires you to verify that the hardware detection logic itself is still functional (Latent Fault Metric). For many FCCU-mapped SMs, you may still need to periodically trigger a "Software Test Trigger" (if available for that IP) to ensure the path to the FCCU is alive.
- Documentation: The official procedure is found in the S32G2 Safety Manual. Specifically, look for the section titled "Fault Control Unit (FCCU) Integration" and the "Safety Concept" chapter for each specific IP.
- Workflow:
- Configuration: Usually handled via the S32 Configuration Tool (integrated into S32 Design Studio) or via the RTD (Real Time Drivers).
- Implementation: The RTD provides the
Fccu_Ip driver, which is the recommended way to initialize the reactions and mapping rather than manual register poking.
2. SMs Requiring A53 Application-Level Software
Beyond the timestamp and watchdog items you identified, the A53 requires manual software implementation for mechanisms that the hardware cannot "see" logically. In the Addendum_S32G2.xls, look for these additional areas for the A53:
- SM_A53_01 (Software Countermeasures for Common Cause Failures): Since the A53 cores often run in Performance Mode (not lockstep), the app must handle logical consistency checks if being used for ASIL functions.
- MMU Management: Hardware provides the MMU, but the A53 Application SW must implement the table parity/error handling and periodic software-based memory protection checks.
- Register Integrity: Some configuration registers for A53-specific peripherals (like the GIC or Generic Timer) require periodic software read-backs to ensure no "bit flips" have occurred in static configurations.
- E2E (End-to-End) Protection: Any data coming from the A53 to the M7 or external communication must be protected by the application (CRC/Sequence Counters), as the FCCU cannot validate the "correctness" of your data payload.
3. FCCU Fault Source Documentation
The S32G series handles documentation differently than the older MPC series. There isn't a 1:1 "AN5259" equivalent, but the information is consolidated in a more "database-centric" way:
- The Reference Manual (RM): Look at the FCCU Chapter. It contains the table of "Non-Critical Fault Channels." This is the direct equivalent of the list in AN5259.
- The Safety Manual (SM): This is your primary source. It maps the Safety Mechanisms (SM_xxx) to the FCCU channels.
- The Hardware-Software Interface (HSI): This is often provided as part of the SafeAssure package.
| Document |
Purpose for FCCU |
| S32G2 RM |
Defines the physical mapping of NCF[x] to the hardware source. |
| S32G2 Safety Manual |
Defines the "Safety Goal" and which NCF channel satisfies it. |
| RTD Documentation |
Provides the API usage for the Fccu_Ip driver. |
Comparison Summary
| Feature |
MPC574xP (Legacy) |
S32G2 (Current) |
| Primary Doc |
AN5259 |
S32G2 Safety Manual |
| Config Tool |
EB Tresos / Manual |
S32 Configuration Tool (RTD) |
| A53 Role |
N/A (M4/Z4) |
Complex (Requires MMU/Cache/Cluster SMs) |
regards