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: F021 ECC broken

Part Number: TMS570LC4357
Other Parts Discussed in Thread: UNIFLASH

Hi:

    I have met the ECC broken error. In my project, we use .ld file as link file instead of .cmd. In this case,  some syntax error occurd when I add these code below:

    ECC_VEC  (R) : origin=(0xf0400000 + (start(VECTORS) >> 3))
                   length=(size(VECTORS) >> 3)
                   ECC={algorithm=algoL2R5F021, input_range=VECTORS}
                   
    ECC {
    algoL2R5F021 : address_mask = 0xfffffff8 /* Address Bits 31:3 */
                   hamming_mask = R4         /* Use R4/R5 build in Mask */
                   parity_mask  = 0x0c       /* Set which ECC bits are Even and Odd parity */
                   mirroring    = F021       /* RM57Lx and TMS570LCx are build in F021 */
}

   So do you have .ld file example of ECC?

  • Hi Li,

    TI ARM C/C++ Compiler supports ECC generation on Hercules microcontrollers (TMS570, RM4x). Is *.ld a linker cmd file used by TI compiler?

  • *ld linker cmd is for ARM GCC compiler.

    Does "auto ECC generation" of uniflash same as your demo cmd file?

  • Uniflash "Auto ECC Generation" means the generation of the ECC code when downloading the binary to the target.

    The linker ECC generation is to generate ECC during the final link step of compilation. The ECC data is included in the resulting object file, alongside code and data. Therefore, no extra ECC generation step is required after compilation.

    It’s not possible to use both the CCS integrated ECC generation and Linker Generated ECC at the same time.