Hello @jimmyli ,
Thanks for your post. I have reproduced your issue. The “RTC0->CTRL |= RTC_CTRL_CLK_SEL_MASK;” generated by Config Tools does have a problem. I will report it to the internal team. Please refer to the workaround below.
1. Comment out the following code in clock_config.c.

2. In hardware_init.c, call the BOARD_InitBootPeripherals(); function declared in peripherals.h. This file contains the RTC-related configurations generated by the Peripherals Config Tools.

3. Modify the main function to test:

4. Test result:

Hope it helps.
BR
Celeste
-----------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
-----------------------------------------------------------------------------------------------------------------