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: Some addresses still have data after the internal flash is erased

Part Number: TMS570LC4357

Dear team:

My client wants to write 480 bytes of data to a certain address, but some addresses will randomly allocate some data after erasing the flash. Writing data to these addresses with data will cause data errors. He tried two ways to erase,

1. Use the erase function in F021 to erase, the erase result:

2. Use the Unflash to erase. The erase result:

3. Use CCS's on-chip flash to erase, and the result is the same as previously described

In addition, he tried two other development boards of this model, and had the same problem.

How can I solve this problem?

Best regards

  • Hello Green,

    The TMS570LC43x has flash ECC which is always enabled. The ECC is calculated using the data and the address, so the proper ECC value for data = 0xFFFFFFFF FFFFFFFF is different for different locations. When the flash is erases, the ECC bits are also erased. At some locations the ECC value 0xFF equates to a single bit error that is corrected by the ARM R5 CPU before the data is displayed. Other locations equate to uncorrectable errors and can change multiple bits in the display. Go ahead and program your code with the proper ECC and you should see it properly displayed in the debugger memory window.