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/
Revisions of check_revision.cpp
Revision | Date | Message | Actions |
---|---|---|---|
14:4b03106ece1f | 2021-03-06 | run on mbed-os6.8.0 | File Diff Annotate |
12:8cb1f89541d1 | 2021-01-06 | run on mbed-os-6.6.0 | File Diff Annotate |
11:2e514d955a2b | 2020-08-01 | changed RawSerial to BufferedSerial on mbed-os-6.2.0(mbed_version.h=set correct version) | File Diff Annotate |
10:806cfec92eb6 | 2020-07-18 | run on mbed-os6.2.0 (mbed_version.h = os5.15.4) | File Diff Annotate |