2021-07-01 01:23 AM
Hi,
I made a project for only internal RTC. It worked with LSI and not with LSE.
Then I integrated RTC in current project which has various other features. It is not working. I am getting zero readings.
RTC initialization, get time & date functions are same. What are the steps to troubleshoot the problem?
Thanks
Ralph
2021-07-01 01:59 AM
Hello @Ralph ,
There are RTC examples located in the firmware package (see under the Projects folder and select the board/device you're using). You can try one of them, and then compare with your code to see why it wouldn't work with LSE for you. For the integration issue, more details would be appreciated.
Best regards,
@SBEN .2
2021-07-01 03:25 AM
Hello @Ralph and welcome to the community :)
You can go under this path "STM32Cube\Repository\STM32Cube_FW_F3_V1.11.2\Projects\STM32373C_EVAL\Examples\RTC" in both projects the RTC is clocked by LSE, you can follow the same configuration and also if you use you own board try to do the same implementation of the LSE as in the schematic of STM32373C_EVAL board.
Mohamed Aymen
2021-07-01 03:54 AM
Read out and check/post content of RTC and relevant RCC (BDCR, CSR) registers content.
What is your hardware? How is VBAT connected? Show us the LSE layout and tell us the exact parts used there.
JW