2019-09-17 02:46 AM
Hi,
I am using STM32L073CBT6. I want my MCU go to the deep sleep and wakeup by internal RTC and one of my GPIO pin. I already read the datasheet but a little bit messy.
Im using 16Mhz cpu clock, 8Mhz for LPUART ABP1 clock,
1.Right now, Im stuck on setup the RTC. I can read the RTC counting but cannot set the value. I have followed the example code from manual datasheet RM0367(page 1002). The INIF flag in RTC_ISR did not changed to high after i set INITS to High in RTC_ISR register. I already enable the write access before I set the INITS. Also after I set it High, the value of INIT is High in my LPUART terminal monitor.
Thank you in advance. I hope u can help me.