13.4.2.4 Real-Time Counter (RTC) Clock Selection

Before enabling the RTC peripheral, the RTC clock must be selected by writing the RTCSEL bit field in the RTCCTRL register.

To ensure proper operation, disable the RTC peripheral before changing the RTC clock source. See the RTC - Real-Time Counter chapter for additional information.