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.

CCS/TMS570LC4357: Random error occur at ESM Group3 error has been solved and we want to get your verification.

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

hi.

we (me and min woo Lim) have found the reason why random L2RAM ECC uncorrectable error has been occurred.

the reason is that an error is because of Stackpointer initialization problem.

we change the ram init call position before stackpointer init.

then, all of problem has been clear.

(we guess this problem is of stack pointer mismatching)

therefore, we just wanna get official verificaiton about this resolution can be applied for our product as safety purpose device.

thanks.

  • Hello,

    A memory initialization is required before any RAM access is made. The start-up sequence generated by HALCoGen initializes the CPU registers and the stack pointers in various modes before initializing the RAM. If your start-up sequence causes any RAM access before initializing the RAM itself, an ECC error could occur.

    You can check if the call to the memory initialization routine causes any stack PUSH/POP or STMIA/LDMIA operations. If so, then the stack pointers must be initialized before calling this routine.

    Hope this helps.

    Regards, Sunil

  • thanks for your reply Sunil

    i have tested the code again today and there is _SL_Init_EnableEventExport() code between Stack init and RAM init

    if SL_Init_Memory(RAMTYPE_RAM) code is called directly whereever after or before SL_Init_StackPointers(),

    An error has been clear. 

    Perhaps, _SL_Init_EnableEventExport() code causes ECC double bit error.

    thanks for your help

    Regard