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: ECC calculation issue

Part Number: TMS570LC4357
Other Parts Discussed in Thread: UNIFLASH

Hello,

I'm writing a script to generate ECC flash values, but I get the exact same issue as this one, with the same values:

https://e2e.ti.com/support/microcontrollers/hercules/f/312/t/680360

would it be possible to explain the issue a little bit more precisely?

Thanks in advance

  • Hello,

    Please. take a look at this thread:

  • Hello,

    Thank you for your quick reply. I'm now able to get the same values as the example value in the spna126. However, a few remarks:

    - the participating bits of ECC[3] should be 6A78D_38E338E3_38E338E3 instead of 6A78D_39E338E3_38E338E3 (the 'x' mark in the table is correct but the code doesn't match)

    - the parity of ECC[4..7] should be odd

    - the second example in table 2 of spna126 might be wrong, as I can reproduce all example values excepted this one (I get an ECC value of 0x3F)

    Am I doing something wrong, or the application note is wrong? I can generate ECC values for the TMS570LC4357 using my own script, with the parity described in the AN and the endianness switched to big, but I'm wondering why the example values in spna126 seem to be wrong, as I checked my values against the values generated by the Uniflash tool, and my script seems to be correct.

    Best Regards,

    Guillaume

  • Hello,

    Did you manage this issue?

  • Hello,

    Well I'm able to generate ECC flash for a tms570lc4357 MCU. However, what happens if the data are not 64 bit-aligned? Currently, I'm able to generate ECC flash for aligned data, but I'm not able to reproduce the ECC values generated by uniflash on unaligned data.

    For info, my script can be found here: https://github.com/Sauci/pyecc

    Best regards,

    Guillaume