Sony's Developer World forum

    • Home
    • Forum guidelines

    RTC Alarm in ColdSleep

    Spresense
    2
    2
    182
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Thaïs last edited by

      Hello,

      In order to improve our power efficiency, we are currently using the ColdSleep mode of the sony spresense. However, we need to wake up the board at different times for different reasons but we do not know how to do it. We saw that there are 3 RTC Alarms that can be used in ColdSleep (Alarm0, Alarm1 and Alarm2) but we do not know how to set and use Alarm1 and Alarm2 (since Alarm0 seems to be used by default).

      Thanks,
      Thaïs

      C 1 Reply Last reply Reply Quote
      • C
        CamilaSouza DeveloperWorld @Thaïs last edited by

        Hey, @Thaïs

        https://github.com/sonydevworld/spresense-nuttx-apps/blob/new-master/examples/alarm/alarm_main.c
        Please take a look at this example and let me know if it helps in your project.
        You can pass the alarmid as an argument to this example. Also, to enable multiple alarms, you can change the CONFIG_RTC_NALARMS config.

        Closer look at the setmode portion of the code. Starting in line 385.

        1 Reply Last reply Reply Quote
        • First post
          Last post
        Developer World
        Copyright © 2021 Sony Group Corporation. All rights reserved.
        • Contact us
        • Legal