Hello F&S Team,
We would like to use the cortex-m4 for time synchronization. The idea is to read the Linux system time and generate a hardware pulse at the beginning of every second.
So I created a small test application for the cortex-m4 and was able to enable the SNVS_HP RTC, read the current time from the SNVS_HPRTCMR and SNVS_HPRTCLR register and generate a pulse on a gpio pin . This worked so far, but it seems that the time from SNVS_RTC is not equal to our current Linux system time.
In the kernel log I do not see any hint, that SNVS_RTC is used by Linux. Do I need to enable this in the device tree first? Am I right, that it is possible to read the current Linux system time in the cortex-m4?