AM263Px MCU+ SDK  10.00.00
TMU_ROM_CHECKSUM

TMU ROM Checksum is a feature that is used to check the integrity of the TMU ROM data. Its work is to take a set of data associated with the memory regions of TMU ROM and perform checksum on that data and then compare that resultant data value against a pre-determined golden vector value.

Features Supported

This module provides the following functionality:

  • Ability to select the MCRC channel to calculate checksum
  • Ability to compare resultant checksum data with golden value

SysConfig Features

  • None

Features NOT Supported

  • None

Important Usage Guidelines

  • None

Example Usage

The following shows an example of SDL TMU ROM CHECKSUM API usage by the application to check the integrity of data at ROM region.

Include the below file to access the APIs

Use below API For calculating the TMU_ROM_CHECKSUM.

int32_t test_Result;
testResult = SDL_TMU_ROM_Checksum_Compute(SDL_MCRC_CHANNEL_1, &sectSignVal);
The above API will return SDL_PASS, if the calculated CRC matches with the golden CRC.

API

SDL TMU ROM CHECKSUM IMPLEMENTATION

sdl_tmu_rom_checksum.h
This file contains the SDL TMU ROM Checksum API's.
SDL_MCRC_CHANNEL_1
#define SDL_MCRC_CHANNEL_1
Definition: mcrc/v0/sdl_mcrc.h:159
SDL_MCRC_Signature_t
Structure for accessing MCRC register data which are 64 bit wide.
Definition: mcrc/v0/sdl_mcrc.h:287