AM263Px MCU+ SDK: SDL R5F ECC BTCM

| AM263Px MCU+ SDK 26.00.00 |

SDL R5F ECC BTCM

# Introduction

This example demonstrates the usage of the SDL R5F BTCM module. The example shows how to setup and use the ECC Safety Diagnostic operation. Shows the generation of SEC and DED error on R5F BTCM 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
r5fss1-0 nortos
Toolchain | ti-arm-clang
Board | am263px-cc
Example folder | examples/sdl/ecc/sdl_ecc_r5_btcm/

# 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)
- Launch a CCS debug session and run the executable, see CCS Launch, Load and Run

# 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 BTCM 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 0x4
R5FSS0 CORE0 BTCM Double bit error inject: pErrMem fixed location = 0x00080010 once test complete: the value of pErrMem is 0x00000000
Waiting for ESM Interrupt
UC-1: Injected 2-bit error and got ESM Interrupt
R5FSS0 CORE0 BTCM 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 BTCM Single bit error inject at pErrMem = 0x00080010 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.
All tests have passed.