请问在设定RTC的寄存器时是否设置了PWR_CR中的DBP位?
STM32技术参考手册中第8.1节:After reset, access to Backup registers and RTC is disabled and the Backup domain is protected against possible parasitic write access. The DBP bit must be set in the Power Control Register (PWR_CR) to enable access to the Backup registers and RTC. |
|