AM62x MCU+ SDK  09.02.00
DDR ECC Test MAIN ESM

Note
This example demostrates handling the ESM error in the Main domain R5. The error can also be routed to MCU ESM and handled in the safety domain (M4 core)

Introduction

This example simulates a 1b and 2b ECC error for DDR and waits for interrupt via the MAIN ESM instance. On receiving the interrupt, the handler clears the ECC error bit and restore the original value. If the interrupt is not received the test fails.

Supported Combinations

Parameter Value
CPU + OS r5fss0-0 nortos
Toolchain ti-arm-clang
Board am62x-sk, am62x-sk-lp, am62x-sip-sk
Example folder examples/drivers/ddr/ddr_ecc_test_main_esm/

Steps to Run the Example

Note
This example corrupts the data present in DDR for ECC error testing, so it cannot be placed in DDR. It has to be side loaded from CCS. SBL cannot load this example as it runs from HSM RAM memory.
Note
DDR inline ECC can be configured in the sysconfig of other SBLs as well. If you are configuring ECC for different address region, change the DDR_ECC_REGION0_START macro in the example file for testing.

See Also

DDR

Sample Output

Shown below is a sample output when the application is run,

Waiting on Single bit Error Correction Interrupt...
1b ECC error detected
Waiting on Dual bit error detection Interrupt...
2b ECC error detected
All tests have passed!!