The prescaler is not reset when setting the counter so we can be off by as much as 1023/1024 seconds. Fix this by resetting the RTC module.
Support the rtc module by using hal_calendar.