Teensy 4.1: EEPROM Corruption

Status
Not open for further replies.

jimmie

Well-known member
  • I have a Teensy 4.1 powered by a POE inverter.
  • My Teensy restarts periodically using the wdt watchdog library.
  • After starting, I read 35 variables from EEPROM. Each variable is 25 bytes so I am well below the maximum EEPROM size.
  • For an unexplained reason, every so often, values in EEPROM are corrupted.


What can cause that?

Thanks in advance for the community's help.
 
  • I have a Teensy 4.1 powered by a POE inverter.
  • My Teensy restarts periodically using the wdt watchdog library.
  • After starting, I read 35 variables from EEPROM. Each variable is 25 bytes so I am well below the maximum EEPROM size.
  • For an unexplained reason, every so often, values in EEPROM are corrupted.


What can cause that?

Thanks in advance for the community's help.

@jimmie:

Without being able to see the code that you are using (note Forum Rule at the top of the page), anything that might be suggested would purely be a random guess.

Also, what version of Teensyduino are you using ?? There was a fix for EEPROM problems in T4.x incorporated into TD1.54 (see <this> thread & <this> thread).

Mark J Culross
KD5RXT
 
Last edited:
Thank you @kd5rxt-mark.

I upgraded to Teensyduino 1.55 (latest). But now I am getting an unexplained compile error due to the SD library (most likely). When I connected out the SD code, the program compiled.

I will now check if EEPROM corruption recurs.
 
Last edited:
Status
Not open for further replies.
Back
Top