Part Number: TMS570LS3137
Hi ,
Our code is generating ECC nERROR pin was asserted (onboard red led ON), and the MCU refused to start. Now as the project is complex we not not sure if the error is due to RAM ECC or FLASH ECC part of code is being executed from RAM .
Can we disable RAM ECC but Enable FLASH ECC in TMS570LS3137
Is there specific ECC error SFR where we can check what is source of the ECC error ( Flash or RAM )
following is the code that is enabling ECC for both RAM and FLASH
sys_startup.c
/* Enable CPU Event Export */
/* This allows the CPU to signal any single-bit or double-bit errors detected
* by its ECC logic for accesses to program flash or data RAM.
*/
_coreEnableEventBusExport_
mrc p15, #0x00, r0, c9, c12, #0x00
orr r0, r0, #0x10
mcr p15, #0x00, r0, c9, c12, #0x00
bx lr
/* Enable response to ECC errors indicated by CPU for accesses to flash */
flashWREG->FEDACCTRL1 = 0x000A060AU;
/* Enable CPU ECC checking for ATCM (flash accesses) */
_coreEnableFlashEcc_
mrc p15, #0x00, r0, c1, c0, #0x01
orr r0, r0, #0x02000000
dmb
mcr p15, #0x00, r0, c1, c0, #0x01
bx lr