In the past, you need modify rtc_api.c in mbed-dev source code. From this revision, you can just use RTC function all of conditions (Normal, Reset, Stand-by, Power OFF).
Note
From now on, you do NOT need any modification for mbed-dev library because STM team updates rtc_api.c source code and support RTC function under reset & standby condition includes power off condition (You need additional VBAT back-up hardware).
Please refer following NOTE information.
/users/kenjiArai/notebook/nucleo-series-rtc-control-under-power-onoff-and-re/
Files at revision 14:4b03106ece1f
Name | Size | Actions |
---|---|---|
[up] | ||
uart_as_stdio | ||
check_revision.cpp | 733 | Revisions Annotate |
main.cpp | 9599 | Revisions Annotate |
mbed-os.lib | 77 | Revisions Annotate |
mbed_app.json | 140 | Revisions Annotate |