![]() |
S32 SDK
|
The S32 SDK provides both HAL and Peripheral Drivers for the Error Reporting Module (ERM) module of S32 SDK devices.
The Error Reporting Module (ERM) provides information and optional interrupt notification on memory errors events associated with ECC (Error Correction Code).
The ERM includes these features:
Capture address information on single-bit correction and non-correctable ECC events.
Optional interrupt notification on captured ECC events.
Support for ECC event capturing for memory sources, with individual reporting fields and interrupt configuration per memory channel.
In order to be able to use the error reporting in your application, the first thing to do is initializing it with user configuration input. This is done by calling the ERM_DRV_Init function. Note that: channelCnt takes values between 1 and the maximum channel count supported by the hardware.
After ERM initialization, the ERM_DRV_SetInterruptConfig() shall be used to set interrupt notification based on interrupt notification configuration.
The ERM_DRV_GetInterruptConfig() shall be used to get the current interrupt configuration of the available events (which interrupts are enabled/disabled).
The ERM_DRV_GetErrorDetail() shall be used to get the address of the last ECC event in Memory n and ECC event.
The ERM_DRV_ClearEvent() shall be used to clear both the record of an event and the corresponding interrupt notification.
This is example code to configure the ERM driver:
Modules | |
ERM Driver | |
Error Reporting Module Peripheral Driver. | |
ERM HAL | |
Error Reporting Module Hardware Abstraction Layer. | |