DDR ECC Test MAIN ESM
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 |
mcu-r5fss0-0 freertos |
Toolchain |
ti-arm-clang |
Board |
am62px-sk |
Example folder |
examples/drivers/ddr/ddr_ecc_test_main_esm/ |
Steps to Run the Example
When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
By default DDR inline ECC is configured in the sysconfig of SBL NULL bootloader.
Flash SBL NULL bootloader by following steps mentioned in Flash SOC Initialization Binary
Switch to OSPI NOR BOOT MODE and power on the EVM.
Launch a CCS debug session and run the executable, see CCS Launch, Load and Run
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
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!!