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.

RM48L940: Flash ECC Test

Part Number: RM48L940
Other Parts Discussed in Thread: UNIFLASH, NOWECC,

I'm trying to understand better how Flash ECC test works.

  1. I remember reading that to support Flash ECC I must program a special image which is my application plus ECC bits, because the Flash, unlike RAM, does not automatically generate ECC syndrome on the fly when program the flash. Is that correct? If so how do I generate such a special image with embedded ECC? Is there any document I can refer to?
  2. Currently, I program my Flash via JLINk probe using IAR IDE (or UniFlash). I then attempted to run Flash ECC test. The 1Bit ECC test on Flash seems to pass but 2Bit ECC test on Flash causes the processor to hung. In light of #2 above, does it make sense that 1Bit ECC test on Flash passes given that I don't have a binary with embedded ECC?
  3. Why does the 2Bit ECC test on Flash fail?

  • Hello,
    The ECC values for all of the ATCM program memory space (Flash banks 0 through 1) must be programmed into the Flash before SECDED is enabled.
    nowECC ( http://www.ti.com/tool/nowecc ) can be used to generate the correct values of the ECC. UniFlash has Auto ECC Generation option as well CCS.
    On RM48L940 Flash ECC is not enabled by default. You have to enable it.
    SL_SelfTest_Flash will return TRUE if function executed successfully else FALSE

    Best regards,
    Miro