57. RTC

57.1. Overview

The RTC demo provides the following features: - Set RTC time

  • Read RTC time

  • Set RTC Alarm

  • Set RTC Alarm interrupt

  • Enable rentention mode for Battery domain

57.2. Board Setting

No special settings are required

57.3. Running the example

When the example runs successfully, the demo will shoe the menu on the console UART port as below:

---------------------------------------------------------------------------
*                                                                         *
*                                   RTC Demo                              *
*                                                                         *
*       1. Show RTC time                                                  *
*       2. Demonstrate 3 types of RTC alarm                               *
*       3. Demonstrate the retention mode of Battery Domain               *
*       4. Set RTC Time                                                   *
*       5. Demonstrate RTC interrupt                                      *
*                                                                         *
---------------------------------------------------------------------------

Type one of the listed option to run corresponding example.

57.4. NOTE

  • Example #3 will reset the SoC, so it is better to run it with flash_xip or flash_sdram_xip related builds for better user experience