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/
mbed-os.lib@12:8cb1f89541d1, 2021-01-06 (annotated)
- Committer:
- kenjiArai
- Date:
- Wed Jan 06 23:57:37 2021 +0000
- Revision:
- 12:8cb1f89541d1
- Parent:
- 11:2e514d955a2b
- Child:
- 14:4b03106ece1f
run on mbed-os-6.6.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kenjiArai | 12:8cb1f89541d1 | 1 | https://github.com/ARMmbed/mbed-os/#84d991342a41011fc417aab62c0f5a8832f1d18f |