FuSa 8-Bit Libraries Safety Framework
Loading...
Searching...
No Matches
midware_memory_manager_diag.h File Reference

Contains API prototypes for the Memory Manager Diagnostics. More...

#include <stdint.h>
#include <define_error_flags.h>
#include <xc.h>

Go to the source code of this file.

Macros

#define DIAG_FLASH_ADDRESS   MAPPED_PROGMEM_START
 Defines an address in Flash used in diagnostics to trigger Flash read.
#define DIAG_EEPROM_ADDRESS   EEPROM_START
 Reserves an address in EEPROM used in diagnostics to trigger EEPROM read and write.

Functions

errFlag_t MW_DiagRamParity (void)
 This function performs error injection diagnostic to detect faults in the RAM parity checker triggered by RAM access.
errFlag_t MW_DiagNvmParity (void)
 This function performs error injection diagnostic to detect faults in the CPU and NVM bus parity checkers triggered by NVM access.
errFlag_t MW_DiagRamEcc (void)
 This function performs error injection diagnostic to detect faults in the redundant RAMCTRL ECC checkers.
errFlag_t MW_DiagNvmFlashEcc (void)
 This function performs error injection diagnostic to detect faults in the NVMCTRL ECC checkers with Flash read trigger.
errFlag_t MW_DiagNvmEepromEcc (void)
 This function performs error injection diagnostic to detect faults in the NVMCTRL ECC checkers with EEPROM read trigger.

Detailed Description

Contains API prototypes for the Memory Manager Diagnostics.

The Memory Manager Diagnostics API are used by T_RunStartupDiagnostics and T_RunNextLatentFaultDiag to test the safety mechanisms present.

Definition in file midware_memory_manager_diag.h.