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-EP: ECC Generation using linker file and AutoGeneration Parameter using FAPI

Part Number: TMS570LC4357-EP


Tool/software:

Good Evening,

ECC is enabled using linker with the help of ECC directive mentioned in ARM Assembly Language tools. Subsequent ECC values were generated in ECC memory region and no ESM2 flag is set, but when tried to write same data of address 0x0  of data 8 bytes from flash0 into flash1 using FAPI library with AutoECC_Generation parameter passed as an argument, the ECC generated value is different when compared. So please provide us the solution as soon as possible.

PS: All the addresses are aligned with respect to 8 bytes using palign in linkerscript.

  • Hi Deepak,

    Apologies for the delayed response.

    ECC value will also use the address in the ECC generation, even though data is same if address is different than different ECC will be generated.

    For more details refer below Encoding table of ECC:

    And you can use below excel sheet i created for ECC generation:

    8666.ECC_calculation_Big_Endian_Devices(LC4357).xlsx

    In above excel if you enter input fields like ADDR, MSW data and LSW data then it will give you corresponding ECC in output:

    --
    Thanks & regards,
    Jagadish.