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.

TM4C1294NCPDT: Lost of EEPROM content...

Part Number: TM4C1294NCPDT


User data are stored in the EEPROM of TM4C1294, and we had three confirmed cases of EEPROM content lost in the field, and we successfully repeat it in the lab a few times, but then we couldn't repeat it since.

It is a data acquisition device, and the front-end contacted some thing like ESD discharging, which broken down the USB communication.

The device can be restarted properly after being removed from USB cable and reconnecting back in, but SOME of the data stored in the EEPROM were lost

I wonder what the possible causes are...

Anyway, I am thinking to employ block lock to protect the whole EEPROM.

Is the following the correct procedures to do so?

  1. Use EEPROMBlockPasswordSet(uint32_t ui32Block, uint32_t *pui32Password, uint32_t ui32Count) to set the password for block 0, which will apply for the WHOLE EEPROM
  2. Use EEPROMBlockProtectSet on block 0 to set up the protection option for the WHOLE EEPROM
  3. Use EEPROMBlockLock to apply the protection
  4. R/W based on the protection option

To remove the protection, follow the same steps to change the protection option in step 2

If not, Is there any example on how to use blocklock properly?