AM263x MCU+ SDK  09.02.00
SDL R5F ECC ATCM0

Introduction

This example demonstrates the usage of the SDL R5F ATCM0 module. The example shows how to setup and use the ECC Safety Diagnostic operation. Shows the generation of SEC and DED error on R5F ATCM0 ECC Aggregator.

Use Cases

Use Case Description
UC-1 Double bit error injection.
UC-2 Single bit error injection.

Supported Combinations

Parameter Value
CPU + OS r5fss0-0 nortos
Toolchain ti-arm-clang
Board am263x-cc
Example folder examples/sdl/ecc/sdl_ecc_r5_atcm0/

Steps to Run the Example

See Also

ECC : Error Correcting Code

Sample Output

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

ECC Example Application
ECC UC-1 and UC-2 Test
ECC_Test_init: Exception init complete
ECC_Test_init: Initialize of R5FSS0 CORE0 ECC Memory is complete
ESM_Test_init: Init MSS ESM complete
ECC_Test_init: R5FSS0 CORE0 ECC initialization is completed
R5FSS0 CORE0 ATCM0 BANK0 Double bit error inject: starting
ESM Call back function called : instType 0x2, intType 0x1, grpChannel 0x1, index 0x10, intSrc 0x30
Take action
High Priority Interrupt Executed
Read data of DED MSS_CTRL register is 0x0
Read data of DED RAW MSS_CTRL register is 0x0
R5FSS0 CORE0 ATCM0 BANK0 Double bit error inject: pErrMem fixed location = 0x00000510 once test complete: the value of pErrMem is 0x70056921
Waiting for ESM Interrupt
UC-1: Injected 2-bit error and got ESM Interrupt
R5FSS0 CORE0 ATCM0 BANK0 Single bit error inject: starting
ESM Call back function called : instType 0x2, intType 0x2, grpChannel 0x1, index 0xf, intSrc 0x2f
Take action
Low Priority Interrupt Executed
Read data of SEC MSS_CTRL register is 0x0
Read data of SEC RAW MSS_CTRL register is 0x0
R5FSS0 CORE0 ATCM0 BANK0 Single bit error inject at pErrMem = 0x00000510 and the value of pErrMem is 0x00000000 :test complete
Waiting for ESM Interrupt
UC-2: Injected 1-bit error and got ESM Interrupt
All tests have passed.