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.

TMS570LC4357: DMA ECC test fails randomly

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Hi Wang,

This is reference to my previous post regarding DMA ECC test fails randomly. I tried again writing code per safety library and no issue found. May i know are there any pre-configuration required before calling SL_SelfTest_DMA() function. Like DMA module off, or any other DMA specific initialization. Could you please advice. 

  • Hi Dhana,

    After power-up, the DMA RAM content including the ECC bits cannot be guaranteed. To avoid ECC failures when reading DMA RAM, the DMA RAM has to be initialized to known value. TMS570 devices provide the capability to perform a hardware initialization on most memories including peripheral RAMs. You can use this feature to init the DMA RAM before using it.

    If you inject ECC error to DMA RAM, please correct it after your test. 

  • Hi Wang,

    Thank you so much for all your help. Is the function SL_Init_Memory(RAMTYPE_DMA_RAM) need to use to initialize the RAM to initialize the DAM RAM to known values. Please confirm. Also please confirm if any other configuration is required prior to call DMA ECC test.

  • Hi Wang

    Could you pls confirm function which is available in Halcogen to initialize DMA RAM to initialize to known value.

  • Hi,

    Yes, SL_Init_Memory(RAMTYPE_DMA_RAM) can initialize the DAM RAM and its parity area to known values. 

    Before performing DMA self-test, please make sure:

    1. DMA ECC is enabled

    2. CPU is in privileged mode (no user mode)

    3. DMA is out of reset

    4. nError is not active