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: reason on ERROR pin

Part Number: TMS570LC4357

Hi Team,

Here is a question from customer. 

customer found ERROR pin is pulled down and find ESM Group2 bit3 is set.  Based on datasheet, it seems it's related with flash ECC. 

Then check FLASH related Regs: FEDAC_PASTATUS, FEDAC_PBSTATUS, FEDAC_GBLSTATUS are both 0. 

Also, have suggested customer to check EPC description, and they found CAM_CONTENT[0], CAM_CONTENT[1], CAM_CONTENT[3] changes.  CAM_CONTENT[0]=0x000802F8,  CAM_CONTENT[1]=0x00080300,  CAM_CONTENT[3]=0x0080318.

Based on datasheet,  it only shows" CPU writes to this field in function or diagnostic mode. the write data is maksed with byten and stored into CAM on each index" . But no description on meanings of those Regs. Does it mean the address that fault happens? what can be done next to analysis the reason based on the value in Regs? Thanks. 

BRs

Given

  • Hello,

    It seems the error comes form wrong ECC values.
    TMS570LC4357 has ECC for Flash, SRAM, cache. They are enabled as default, and can not be disabled.

    The solution to frequent ECC related errors during development is to program correct ECC values even for the locations in the main flash array that are left unused. This can be achieved by CCS as TI ARM C/C++ Compiler supports automatic generation of Error Correction Codes ( Auto ECC Generation under Properties->Debug->Flash Settings ) or by  using the Linker to generate ECC data rather than the loader ( processors.wiki.ti.com/.../Linker_Generated_ECC ).

  • Hi Miro,

    Thanks for your reply. 

    For the CAM Regs, what does the value means, such as 0x000802F8?

    Also, based on your reply,  you suspect the error comes from wrong ECC values, just want to know more detail on  how you have such suspect. is it through the value in CAM_CONTENT Regs?  Thanks. 

    BRs

    Given

  • Hello,

    In Datasheet Table 6-45 ESM Channel Assignments are listed. For ESM Group 2, Channel 3 it is stated  that this error is  Commonly caused by improper
    or incomplete ECC values in Flash.

  • Hi Miro,

    Thanks for your reply.

    But from the FLASH related Regs: FEDAC_PASTATUS, FEDAC_PBSTATUS, FEDAC_GBLSTATUS are both 0. Does it mean it's not Flash related ESS issue? 

    Also, do you think the EPC CAM REG changes has relationship with the ERROR ? Thanks. 

    BRs

    Given

  • Hi Miro,

    Thanks for your reply. It's helpful.

    Now customer focus on the way to use flash ECC and below are the questions: 

    How to write  ECC data of flash ecc space to space f040000. Customer use boot loader to upgrade APP software, is there need to refresh this address space of flash data ECC? After complier of APP, the hex file generated doesn't have data that has F040000 address. If need to use boot loader to refresh , then we cannot get the refreshed ECC data. 

    BRs

    Given 

  • Hi Team,

    Could you please kindly help comment on latest question on writing ECC data? Thanks.

    BRs

    Given

  • Hello,

    Take a look at Section 6 and Section 7 from this application note to see whether this helps: