AM62Ax MCU+ SDK  10.01.00
RM_SAFETY_CHECKERS

RM safety checkers library APIs are integrated into the safety application to verify the RM modules configurations and validate the current RM modules configurations against golden reference.

Features Supported

The module supports below API's for the application

  • API to get the configurations registers for RM modules such as IR, IA IMAP, Ring Accelerator and DMA config registers.
  • API to read RM module registers at run time and validate they are matching with golden state for modules in the safety loop.

SysConfig Features

  • None

Features NOT Supported

  • None

Important Usage Guidelines

  • None

Example Usage

The following shows an example of RM safety checkers API usage

Include the below file to access the APIs

#include "../../src/safety_checkers_rm.h"

return the rmRegCfg with register configuration for RM module.

compares the rmRegCfg (golden reference) with runtime RM configuration values and return success or failure.

if(gflag == 1)
{
gflag = 0;
retVal = SafetyCheckers_rmVerifyRegCfg(rmRegCfg, size);
if(retVal != 0)
{
DebugP_log("Register Mismatch\r\n");
} else{
DebugP_log("No Register Mismatch\r\n");
}
}

API

RM Safety Checkers Library

size
uint16_t size
Definition: tisci_boardcfg.h:1
SafetyCheckers_rmGetRegCfg
int32_t SafetyCheckers_rmGetRegCfg(uintptr_t *rmRegCfg, uint32_t size)
API to get the register value for all the RM control modules E.g. When the RM register configuration ...
DebugP_log
#define DebugP_log(format,...)
Function to log a string to the enabled console.
Definition: DebugP.h:227
SafetyCheckers_rmVerifyRegCfg
int32_t SafetyCheckers_rmVerifyRegCfg(const uintptr_t *rmRegCfg, uint32_t size)
API to read back and compare the RM control module registers data E.g. When the RM verify register ...