Hello
Team
I want to enable the ram ecc function, I use the safe library SL_Init_ECCTCRAM(...)
Dose this function enable the RAM ecc function
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.
Hello
Team
I want to enable the ram ecc function, I use the safe library SL_Init_ECCTCRAM(...)
Dose this function enable the RAM ecc function
The SECDED logic inside the CPU is not enabled by default and must be enabled by the application. Writing 1 to bit 16 and bit 27 of Auxiliary Control Register to enable B0TCM and B1TCM ECC check (refer to ARM COrtex-R4 TRM).
Since the SRAM ECC detection is enabled by default
What's the difference
1. Writing 1 to bit 26 and bit 27 of Auxiliary Control Register enables SECDED logic inside the CPU.
2. The CPU's event bus signals single-bit or multi-bit ECC error for TCRAM wrapper. These ECC error signals are monitored by the TCRAM. This monitoring is enabled by setting ECC_DETECT_EN to 0x5.
If ECC is enabled in CPU core but disabled within TCRAM wrapper (ECC_DETECT_EN=0x5), the ECC error detected by CPU ECC logic will be ignored by TCRAM wrapper.
If ECC_DETECT_EN=0x05, ECC detect of SRAM wrapper is disabled. The SRAM ECC error will not exported to ESM and SRAM error status register. For 2-bit ECC error, data abort is generated, but ESM3.3 will not be set, and bit 5 of RAMERRSTATUS is not set.
If ECC_DETECT_EN=0x0A, ECC detect of SRAM wrapper is enabled. The SRAM ECC error will exported to ESM and SRAM error status register. For 2-bit ECC error, data abort is generated, thet ESM3.3 will be set, and bit 5 of RAMERRSTATUS will be set too.