Question
Read RTC wakeup timer register on STM32L151
Posted on January 08, 2014 at 14:30
Hi Everybody,
I am using the RTC WakeUp Timer while in Stop mode. The MCU can either leave the Stop mode at the end of the timer, or on an external IRQ. At this level, everything is working perfectly.However, when the MCU is awaken from the external IRQ, I want to read the value of the RTC WakeUp Timer register (RTC_WUTR) and this is not working.The register RTC_WUTR always return the value it is set to, but not its current value.I know the RTC WakeUp Timer is running but the register does not seems to update itself.Is there anything specific that needs to be done to read this register? Is it possible it is somehow read protected?Thanks in advance for your help! #stop-mode #poor-quality-of-documentation #stm32l151 #rtc