Thank you
for your response. I disabled the
external RTC (pcf8563) and enabled the internal RTC (snvs-rtc-lp). Now I have only /dev/rtc0
available and can read/ write time with the hwclock command. This is working
fine, but I still have problems on the cortex-m4 side when I try to read the
current rtc value.
In my understanding, it should now be possible to use the cortex-m4 and read
the SNVS_HP Real-Time Counter Registers (SNVS_HPRTCMR and SNVS_HPRTCLR) to get
the current time. But the SNVS_HP RTC is not enabled and the counter registers
do not change.
I saw, that I activated in the device tree the snvs-rtc-lp (RTC_LP?) and try to read from RTC_HP. Are this two different RTC’s?
Kind
regards,
Stefan