AM263x MCU+ SDK  09.02.00
SDL MCRC Semi CPU

Introduction

This example demonstrates the usage of the MCRC module. The example shows how to setup and use the MCRC controller in the semi mode of operation. Shows the generation of matching CRC as well as non-matching signature due to insertion of error in the block of information on which the CRC is being performed or in the signature provided to the PSA Signature Register (or both, depending on the mode).

Use Cases

Use Case Description
UC-1 Semi CPU-mode signature compute for Channel 1 and comparison against known value.
UC-2 Semi CPU-mode signature compute for Channel 2 and comparison against known value.

Supported Combinations

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

Steps to Run the Example

See Also

MCRC

Sample Output

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

MCRC Test Application
MCRC SEMI CPU mode on Channel 1: Transfer Test Started...
Calculating Reference MCRC signature Value.
MCRC signature value : 0x1c133adab4dd50fU
MCRC Full Mode Computation Time: 1363us
MCRC Semi CPU intrrupt status : 1
Sector signature matches - Passed
Calculated MCRC signature value : 0x01c133adab4dd50fU
EDMA Data transfer completed !!
MCRC Semi Mode Computation Time: 15us
MCRC SEMI CPU mode on Channel 2: Transfer Test Started...
Using Pre-Defined Reference MCRC signature Value.
Pre-defined MCRC signature value : 0x1c133adab4dd50fU
MCRC Semi CPU intrrupt status : 100
Sector signature matches - Passed
Calculated MCRC signature value : 0x01c133adab4dd50fU
EDMA Data transfer completed !!
MCRC Semi Mode Computation Time: 15us
MCRC SEMI CPU mode on Channel 3: Transfer Test Started...
Using Pre-Defined Reference MCRC signature Value.
Pre-defined MCRC signature value : 0x1c133adab4dd50fU
MCRC Semi CPU intrrupt status : 10000
Sector signature matches - Passed
Calculated MCRC signature value : 0x01c133adab4dd50fU
EDMA Data transfer completed !!
MCRC Semi Mode Computation Time: 14us
MCRC SEMI CPU mode on Channel 4: Transfer Test Started...
Using Pre-Defined Reference MCRC signature Value.
Pre-defined MCRC signature value : 0x1c133adab4dd50fU
MCRC Semi CPU intrrupt status : 1000000
Sector signature matches - Passed
Calculated MCRC signature value : 0x01c133adab4dd50fU
EDMA Data transfer completed !!
MCRC Semi Mode Computation Time: 14us
Test Name: MCRC_semiCPU_mode PASSED
All tests have passed.