SDL MCRC Full CPU

Introduction

This example demonstrates the usage of the MCRC module. The example shows how to setup and use the MCRC controller in the full 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

Full CPU-mode signature compute for Channel 1 and comparison against known value.

UC-2

Full CPU-mode signature compute for Channel 2 and comparison against known value.

Supported Combinations

Parameter

Value

CPU + OS

mcu-r5fss0-0 nortos

Toolchain

ti-arm-clang

Board

am62px-sk

Example folder

examples/sdl/mcrc/mcrc_full_cpu/

Steps to Run the Example

Note

64 bit data writes during MCRC calculation will not be atomic due to limitations caused by the configuration of device memory - including the MCRC register space. If the user desires atomicity of register writes during CRC calculation, the recommended software workaround is to disable all interrupts before a write and re-enable them afterwards.

See Also

MCRC

Sample Output SOC_AM62PX

MCRC Application

MCRC FULL CPU mode : starting
Full_CPU mode MCRC signature verification done successfully for the instance MCU_MCRC64_0

MCRC FULL CPU mode : starting
Full_CPU mode MCRC signature verification done successfully for the instance MCU_MCRC64_0

Applications Name: MCRC_fullCPU_mode  PASSED

All applications have passed.

MCRC Application

MCRC FULL CPU mode : starting
Full_CPU mode MCRC signature verification done successfully for the instance MCU_MCRC64_0

MCRC FULL CPU mode : starting
Full_CPU mode MCRC signature verification done successfully for the instance MCU_MCRC64_0

Applications Name: MCRC_fullCPU_mode  PASSED

All tests have passed