RTC cleared after reset

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello everyone,

i found the Real Time Clock to be reset to zero after pressing the reset button of the NGW100. Doing a "reboot" in Linux the content is not touched.

Did anybody know if this is a software bug in "Das U-Boot" or a hardware "feature"?

Werner

... the only thing you cannot unscramble is eggs...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Werner,

I think this is a hardware feature. Indeed, pressing the reset button of the NGW100 asserts the RESET_N pin, what generates a hard reset, while the `reboot' in Linux uses the Watchdog Timer to generate a soft reset. Only a hard reset will reset the RTC.

Take a look at the PM RCAUSE register. You should read in the complete MCU datasheet the chapter Power Manager \ Functional Description \ Reset Controller for further details.

++
Ben

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Actually, Linux uses the OCD system to trigger a reset, not the watchdog, but the rest of your comment makes sense.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

wBoellmann wrote:
Did anybody know if this is a software bug in "Das U-Boot" or a hardware "feature"?
It's more a hardware restriction ;). The RTC is volatile, it gets reset on hard reset. You can put a non-volatile external rtc on the board if you need.

-S.