|
Hi
Thanks to GehardF, another user of this forum, I could fix the problem of rtc0.
The RTC is a sum of gpbr[0] ( General Purpose Backup Register ) and the counter of RTT. The result is a 32 bits UNIX timestamp.
The origin of the issue, came from WRONG address of AT91C_SYS_GPBR that is 0xFFFFFD50 and MUST BE 0xFFFFFD60 in AT91SAM9XE512.h ( at91lib ) and at91sam6260.h ( linux kernel ). HelloOOoo Atmel tech team. Weak up!
The linux driver of RTC of AT91SAM test the content of gpbr[0] and if is zero, it returns a error code, that results in "...SET TIME!" console message. With this error code, the linux does not continue the rtc process. As the gpbr address is wrong, the driver access a nonexistent register and reads ZERO. This is why hwclock shows that error. This is why I couldn't do anything to setup or read rtc0.
So, simply correcting the *.h listed above, all issues are fixed.
Now, I can get hwclock operating flawlessly and rtc0 is updating perfectly the date in linux at boot.
Best Regards for all.
|