Skip to main content
Explorer
June 2, 2025
Solved

Save data to EEPROM after VDD drops

  • June 2, 2025
  • 2 replies
  • 430 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.

    This topic has been closed for replies.
    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

    Graduate II
    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.

    VladixAuthor
    Explorer
    June 2, 2025

    Thanks Tesla.