Other Parts Discussed in Thread: AMIC110
I'm developing software for AM3358BZCZ100 using linux.
When using the "bbbrtc" (https://github.com/bigjosh/bbbrtc) as testing starting point I found that using the function cmd_long_reset there is an issue working with AM3358BZCZ100 RTC registers
During the test the sequence:
1.-freeze the RTC ( set32reg( base , RTC_CTRL_REG , 0x00); // Write a 0 to bit 0 to freeze the RTC so we can update regs)
2.- write desired ALARM and ALARM2 timing information.
3.- read now, alarm and alarm2 registers.
After that, reading the NOW RTC registers (starting in "0H" as in "20.3.5 RTC Registers" "Table 20-63. RTC Registers" from "AM335x and AMIC110 Sitara™ Processors" "Technical Reference Manual"
(SPRUH73Q October 2011–Revised December 2019)
the actual time is shifted 3 hours ahead of original value.
I made a workaround re-writing the NOW registers with previous read data and it worked... but I believe this is not expected behavior from RTC.
Is there a different procedure to operate the RTC ?