This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS3137: SRAM ECC Abort - Permission fault

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN,

Hi,

I have to test SRAM ECC logic in the controller.  I am enabling SRAM ECC diagnostics in the startup code as below,

// Initialize memory
memoryInit(0x1U);

// Enable SRAM ECC
_coreEnableRamEcc_();

During run time, I have to inject SRAM ECC single bit error and need to check that RAM ECC correctable error is reported to ESM. 

Below are the steps followed to inject a single bit error,

1. RAMOCUUR is cleared to 0

2. RAMTHRESHOLD is set as 1

3. ECC_WR_EN bit in TCRAM Module Control Register (RAMCTRL) is enabled.

After that,I am trying to flip a single bit in RAM ECC location to inject an error, but the CPU gets aborted when I access RAM ECC location.

Reason for the abort as read from DFSR is below,

Data Fault status register - 0x0000080D ( Write access permission failed?)

Please let me know why CPU gets aborted when writing to RAM ECC location ?