Error Injection Module (EIM)

Detailed Description

The S32 SDK provides Peripheral Drivers for the Error Injection Module (EIM) of S32 MCU.

The Error Injection Module is mainly used for diagnostic purposes. It provides a method for diagnostic coverage of the peripheral memories.
The Error Injection Module (EIM) provides support for inducing single-bit and multi-bit inversions on read data when accessing peripheral RAMs. Injecting faults on memory accesses can be used to exercise the SEC-DED ECC function of the related system.
Each EIM channel n corresponds to a source of potential memory error events. The following table shows the channel assignments. | Memory n event source EIM channel n |------------------------------------—

| S32K14x | S32K11x

0 | SRAM_L | SRAM_U

1 | SRAM_U | Reserved

Important Note:

  1. Make sure that STACK memory is located in RAM different than where EIM will inject a non-correctable error.
  2. For single bit error generation, flip only one bit out of DATA_MASK or CHKBIT_MASK bit-fields in EIM control registers.
  3. For Double bit error generation, flip only two bits out of DATA_MASK or CHKBIT_MASK bit-fields in EIM control registers.
  4. If more than 2 bits are flipped that there is no guarantee in design that what type of error get generated.
  5. When using double bit error generation on S32K11x, user needs to define one region called ram_low then move the stack and m_interrupts to that region, otherwise the module can't be enabled because the RAM ECC mechanism can only correct one single error.

Modules

 EIM Driver
 Error Injection Module Peripheral Driver.
EIM PD provides a set of high-level APIs/services to configure the Error Injection Module (EIM) module.