Hi igor
Thanks for the reply. I checked and 32.768KHz crystal is working properly. I also ran rtc tests in uni_tests folder and tests passed. But their are 2 following problems :--
1) The system clock slows down very fast. Even if rtc is not present and board is in running mode the system clock should not slow down till board is running. Any solution for this? Our board is running in "ondemand" mode.
2) The rtc doesn't work after shutdown. I followed these steps
- Set the date to the current date and time.
- Set the HW clock to current date and time by using the command "hwclock --systohc"
- Make sure the new date and time are set by issuing "date" and then "hwclock --show"
- Shutdown the system, including a power-cycle. You can use "poweroff" command
- Restart the system with the Linux kernel. Run "date" command.
The "date" command shows date and time before shutdown even though period of board without power was more than 4 minutes.