Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

TMS570LS3137: SRAM ECC Abort - Permission fault

$
0
0

Part Number: TMS570LS3137

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 ?


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>