cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to update internal RTC in STM32F373

Ralph1
Associate

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

3 REPLIES 3
SBEN .2
Senior II

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​ 

Mohamed Aymen HZAMI
ST Employee

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

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