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: Question about test of flash DATA ECC area

Part Number: TMS570LC4357

Hello,

We want to test the Fprom Bank0 and Bank1 (0x00000000 to 0x003FFFFF) and associated flash Data ECC area (0xF0400000 to 0xF0480000).

This is our procedure :
1- Erase flash Bank0 / bank1 and program corresponding flash data ECC
2- program bank0 and bank 1 with 0x00 values and program corresponding flash data ECC
3- read and check flash Bank1 and 2 and check Data = 0x00 and no ECC occurs
4- Erase flash Bank0 / bank1 and corresponding flash data ECC
5- read and check flash Bank0 and 1 and check Data = 0xFF and no ECC occurs
6- Erase  flash DATA ECC only (0xF0400000 to 0xF0480000) with flash Bank0 and 1 unchanged (0xFF values)
7- read and check flash DATA ECC = 0xFF and no ECC occurs
8- program flash DATA ECC only (0xF0400000 to 0xF0480000) with 0x00 values and with flash Bank0 and 1 unchanged (0xFF values)
9- read and check flash DATA ECC = 0x00 and no ECC occurs


This is my questions :

1- For steps 6 to 9, is it possible to write and read in Flash Data ECC area without a coherent Data in Flash Bank0 and 1?  Is there a flash ECC check in this case?
2- If ECC IT occurs, is there a mean to check the erasing of flash DATA ECC area only?

Best regards,

François

  • Hello Francois,

    On this R5 based device, ECC is enabled by default and can not be disabled. Programming and erasing is done by a state machine and can be done on Flash memory without the ECC being programmed. ECC area can not be erased and programmed without erasing/programming main flash area (bank 0 and bank 1).

    You can read the ECC data without reading flash data (bank 0 and bank 1).