FILE: memcfg_ex1_error_handling.c
This example demonstrates error handling in case of various erroneous memory read/write operations. Error handling in case of CPU read/write violations, correctable & uncorrectable memory errors has been demonstrated.
Test functions used in this example
- generateMasterCPUWrViolation -
- This test configures Memconfig to block CPU writes to GS0 RAM. A write attempt to this memory location by CPU causes RAM_ACC_VIOL Interrupt
- generateParityMemUncorrError
- This test induces parity error in GS0 RAM. A read from the corrupted memory location causes NMI
- generateECCMemCorrError
- This test induces single bit ECC error in GS0 RAM. A read from the corrupted memory location causes INT_RAM_CORR_ERR Interrupt
- generateECCMemUncorrError
- This test induces double bit ECC error in GS0 RAM. A read from the corrupted memory location causes NMI
- forceNonMasterDMAReadViolation
- This forces a DMA access violation using MemCfg_forceViolationInterrupt API. This casuses RAM_ACC_VIOL Interrupt
External Connections
Watch Variables
- testStatusGlobal - Equivalent to TEST_PASS if test finished correctly, else the value is set to TEST_FAIL
- errCountGlobal - Error counter