I'm trying to configure Atmel Start to use the 32 kHz external crystal as the clock source for the RTC (in calendar mode) on the SAME54 Xplained Pro. I'm using a 1 ms SysTick as the source for a software RTC and reporting the date & time (YY-MM-DD HH:MM:SS) of both once a minute:
SW RTC: 00-01-01 00:01:00
HW RTC: 00-01-23 18:08:23
SW RTC: 00-01-01 00:02:00
HW RTC: 00-02-15 12:16:59
SW RTC: 00-01-01 00:03:00
HW RTC: 00-03-09 06:25:39
As you can see the RTC peripheral using 32 kHz crystal is running WAY too fast.
Here is my project configuration:
And here is my clock configuration:
I have attached the Atmel Start project (sam_e54_rtc_test_atstart.zip) and Atmel Studio solution with source code (sam_e54_rtc_test_project.zip) for reference.
Any hints / tips would be much appreciated!
Thanks in advance,