Associate
October 31, 2021
Question
Troubles enabling the 32.786kHz RTC clock.
- October 31, 2021
- 2 replies
- 2052 views
Hi all,
I am working with a Nucleo STM32L452RE board and I had a bit of trouble enabling the RTC clock. I am just trying to get a scope shot of the waveform output by the clock itself and I noticed it was not on by default. I attempted to use a few example programs supplied by the IAR Embedded Workbench - specifically the RTC Alarm program. I keep getting stuck inside of an initialization error on line 206 of main.c and the RTC clock never starts up. Any thoughts on this? I've included the c files for the program below in case anyone is not familiar or cannot find it.
Thanks in advance for all your help!