Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
RTC Alarm in ColdSleep
-
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 -
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.