03-05-2020, 05:06 PM
(03-04-2020, 09:48 PM)BlueWave Wrote: There is a built-in command bws-rtc that will help you configure RTC step by step. Just execute it and follow instructions on the screen.
Not sure what you mean by step by step. I've tried to run it, and there were only one step to set up RTC device - I choose DS1307 - script made some things and end without errors.
There is one important point. Script is adding dtoverlay=i2c-rtc,ds1307 in config.txt, which I cannot use, because I have BWS power supply and pin 5/GPIO3 is already occupied.
So I set up dtoverlay=i2c-rtc-gpio and connect RTC to GPIO 23/24 - pins 16/18 of PI 3B+ - those are default for i2c-rtc-gpio overlay.
It seams to work correctly, because I can receive correct date from 'hwclock -r' command even after whole night of PI turned off.
Looks like there is some other problem there, with synchronizing system time with hardware clock.