Skip to main content
Associate
June 2, 2025
Solved

Save data to EEPROM after VDD drops

  • June 2, 2025
  • 2 replies
  • 1110 views

Hello!

Is it possible to save data to EEPROM in STM8S001J3 after VDD drops (power outage)?

I would appreciate any case indication.

 

I appreciate any help in advance.

    Best answer by Tesla DeLorean

    You would likely need to implement a custom supply, which can detect the departure of the primary source, and enough reserve supply to keep the STM8 running long enough to write what you need to EEPROM.

    The alternative would be to periodically flush updated content to EEPROM along the way.

    Or have a battery/supercap adequate to maintain data in NVRAM over the anticipate outage of the primary supply.

    2 replies

    Tesla DeLorean
    Guru
    June 2, 2025

    You would likely need to implement a custom supply, which can detect the departure of the primary source, and enough reserve supply to keep the STM8 running long enough to write what you need to EEPROM.

    The alternative would be to periodically flush updated content to EEPROM along the way.

    Or have a battery/supercap adequate to maintain data in NVRAM over the anticipate outage of the primary supply.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    VladixAuthor
    Associate
    June 2, 2025

    Thanks Tesla.