Skip to content

Problem with external RTC on STM32L476RG board #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mayukhIITD opened this issue Jan 3, 2018 · 6 comments
Open

Problem with external RTC on STM32L476RG board #29

mayukhIITD opened this issue Jan 3, 2018 · 6 comments

Comments

@mayukhIITD
Copy link

Dear Thomas/Kris,

@GrumpyOldPizza @kriswiner
As you know STM32L476RG board has RTC but it is not connected to a Battery. Hence I would like to use an external RTC like ds1307. But when I use DS1307 (I2C address= 0x68) , the usual Arduino libraries like RTCLib are giving output as:

2165/165/165 (Tuesday) 165:165:85
since midnight 1/1/1970 = 2275406289s = 26335d
now + 7d + 30s: 2042/2/15 5:48:15

The same code is running properly when I connect the DS1307 to Arduino board.
Any solution for this will be of much help...

Thanks,
Mayukh

@GrumpyOldPizza
Copy link
Owner

GrumpyOldPizza commented Jan 3, 2018 via email

@mayukhIITD
Copy link
Author

Thanks for your reply Thomas. If the supercap gives 8 hours backup then why is my RTC time resetting everytime the power goes off even for 1 second?

I have checked using I2CScanner that the I2C Adresss of DS1307 i.e. 0x68 is NOT detected..

What is the possible issue then?

Thanks,
Mayukh

@GrumpyOldPizza
Copy link
Owner

GrumpyOldPizza commented Jan 3, 2018 via email

@mayukhIITD
Copy link
Author

I have L476RG.. Does it have supercap?

Thanks,
Mayukh

@GrumpyOldPizza
Copy link
Owner

GrumpyOldPizza commented Jan 3, 2018 via email

@kriswiner
Copy link

kriswiner commented Jan 3, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants