I. Overview
The S32K3 series MCU launched by NXP is a high-performance automotive-grade MCU for automotive applications. This series of chips supports the highest ASIL-D level of functional safety and is widely used in automotive applications such as automotive BMS, chassis controllers, and body controllers. This article will introduce the FCCU module in the S32K3 chip.This module is one of the key modules to achieve functional safety. This module is mainly responsible for collecting hardware errors and related control of the chip. The following will focus on the functions of this module.
2. The main characteristics of the FCCU module
FCCU (Fault Collection and Control Unit) module, that is, the error collection and control module, when an error occurs in other modules, the error signal will be transmitted to the FCCU for unified management.
The FCCU module of S32K3 has the following main features:
- Manage non-critical failures
- Hardware and software failure recovery management
- Error collection of security-related modules on the chip
- Error injection
- Collect test results
- Configuration can be locked
- Configurable error control
- The internal chip response of each non-critical fault can be configured (including functional reset, NMI interrupt, IRQ, and no action)
3. The function of the FCCU module
The internal block diagram of the FCCU module is shown below:
FCCU has the following four working states:
(1) CONFIGURATION status
The default STATE after S32K3 starts is CONFIG. In this state, you can configure the operation of the FCCU's registers, and then manually SWITCH to NORMAL MODE after the configuration is COMPLETE. In addition, when the FCCU configuration times out, IT will automatically ENTER NORMAL MODE. The configuration of the FCCU is the default configuration.
(2) NORMAL state
When the FCCU detects an error on any channel of the NCF, it will automatically switch from NORMAL to ALRAM or FAULT mode (depending on whether the ALRAM interrupt of the NCF channel is enabled)
(3) ALRAM status
IF the NCF channel enables the ALRAM interrupt and an error occurs, then the FCCU will SWITCH FROM NORMAL MODE TO ALRAM mode, AND there WILL BE AN ALARM INTERRUPT. The USER CAN handle the error IN THE INTERRUPT. IF THE ERROR DISAPPEARS AFTER processing, THEN THE FCCU will SWITCH to NORMAL MODE. In ADDITION, the FCCU also has ALRAM. timer, if the error does not disappear within a certain period of time, it will enter the FAULT state.
(4) FAULT status
If the NCF channel does not enable the ALRAM interrupt, the FCCU will switch from NORMAL to FAULT state when an error occurs. When the FAULT STATE is ENTERED, you can choose to TRIGGER A functional reset or an NMI interrupt. If all errors are eliminated through a functional reset or an NMI interrupt, the FCCU will switch from FAULT.BACK TO NORMAL, IF THE ERROR IS NOT ELIMINATED, A FUNCTIONAL reset (configurable, UP TO 15 TIMES) WILL BE TRIGGERED CONTINUOUSLY, AND A destructive reset (configurable, UP TO 15 TIMES) WILL BE TRIGGERED IF N CONSECUTIVE DESTRUCTIVE RESETS ARE NOT ELIMINATED. If MORE THAN N consecutive DESTRUCTIVE RESETS CANNOT BE ELIMINATED, THEY WILL ALWAYS BE STUCK IN THE reset STATE.
1. "S32K3XXRM. pdf", Rev 9, 2024.07
comment