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: Configuring ESM channel for OTP ECC errors

Part Number: TMS570LS3137

I want to capture and raise ESM error for the ECC errors in OTP memory. In the datasheet, I could not find ESM channel assigned for OTP ECC errors.

Kindly note that I have already enabled ECC for flash region by setting ATCMPCEN bit in System control coprocessor’s Auxiliary control register, c1. 

Please clarify my doubt whether ESM channel for flash ECC (TCM - ECC live lock detect) ESM group2 channel 16 will raise an error alarm for OTP ECC errors.

  • CPU accesses to Flash bank OTP regions, Flash ECC regions, and data Flash bank go through what is termed as the Flash Bus 2 interface. These memory regions are not mapped to the tightly-coupled memories for the CPU, and as such the CPU's ECC logic does not check ECC for accesses to these regions.

    There is separate ECC logic inside the Flash interface module controller (called FMC in the TRM). This logic checks the ECC on accesses to the bus 2 interface and signals errors to the ESM. There is a table in the datasheet (table 6-36 on page 102 of SPNS162C) that lists all error sources, including those for accessing the Flash bus 2 interface.

    Regards, Sunil

  • Thanks for the reply Sunil.

    I have some other doubts. please clarify the same.

    How to enable the ECC detection in FMC in software during initialization? Or is it enabled by default?

    Also, is it required to generate ECC bits for OTP and data flash regions like we do for ATCM region before programming? 

  • How to enable the ECC detection in FMC in software during initialization? Or is it enabled by default?

    >> ECC checking inside the flash interface module (FMC) is not enabled by default. See Flash Error Detection and Correction Control Register 1 (FEDACCTRL1) description in TRM (spnu499c).

    Also, is it required to generate ECC bits for OTP and data flash regions like we do for ATCM region before programming? 

    >> There are OTP locations already programmed to have deliberate single- and double-bit ECC errors. The CPU can just read from these locations to ensure that the correct errors are signaled to the ESM. See section 5.4.2.5 Deliberate ECC Errors for FMC ECC Checking in the TRM (spnu499c).