Hi,Team,
I'm currently using the nrf54l15-dk. I want to set the rtc of the nrf54l15-dk to obtain the timestamp. How should I configure the rtc? Which examples should I refer to?
My ncs version is v2.8.0.
Thanks.
Hi,Team,
I'm currently using the nrf54l15-dk. I want to set the rtc of the nrf54l15-dk to obtain the timestamp. How should I configure the rtc? Which examples should I refer to?
My ncs version is v2.8.0.
Thanks.
Hello,
nRF54L15 does not have a traditional RTC (Real-Time Counter) peripheral like previous nRF series. Instead, it features a GRTC (General Real-Time Counter) and a SYSCOUNTER, which are used for timekeeping and timestamping purposes.
You also need to migrate to NCS 3.0.2.
For implementing timestamp, you should use the Zephyr kernel timer. See the following links:
https://docs.zephyrproject.org/latest/doxygen/html/group__clock__apis.html#gae3e992cd3257c23d5b26d765fcbb2b69 , https://docs.zephyrproject.org/latest/kernel/services/timing/clocks.html
Hi,
I have updated to NCS 3.0.2. Which project should I refer to?
Thanks.
Hi,
I have updated to NCS 3.0.2. I want to use the nrf54l15 to implement the functions of setting and reading the timestamp. Which project should I refer to?
Thanks.
Hello Kazi!
I have the same issue as OP, I want to get and set RTC on the devkit.
The documentation you linked is for Zephyr 4.2.99 which has sys_clock_gettime() and sys_clock_settime() which look promising.
I updated to NCS 3.1.0 which is the latest version and has Zephyr 4.1.99, which does not have these API functions. Is there any other API I can use?
Regards, Tom
Hi, I have the needs.
If there're examples please update.