Portenta H7 data retention

Good morning everyone,

I need to have 2 pieces of information:

  • How can I keep the system clock active even when the borad is turned off? I need to have the correct date even after the reboot.
  • What is the best solution to save the state of some variables when the board is turned off?

Hardware:

  • Portenta H7
  • Machine Control

Thanks so much for the support.