I want to interface precision RTC DS3231 with Raspberry Pi3, so that my PI will get accurate time (even in the absence of network). I am using the latest raspbian image 2016-05-27-raspbian-jessie. I could be able to interface DS3231 with raspberry pi. I gets the correct timing when i hwclock -r. But the problems arise, when i reboots. RTC is getting corrupted to 2066-01-01 after reboots. And i cross checked the RTC with Atmega32 and confirmed that it is working properly. I have tried various methods available in net. I could not make it. Please help. I have connected RPi3 with DS3231 RTC as given below.
BCM 2 (SDA) to SDA
BCM 3 (SCL) to SCL
3.3 to VCC
GND to GND
i2cdetect output
i2cdetect
output).