Hello @VaneB @nxp , I am working on the internal RTC in the K322 controller, but I am unable to see the date and time values increasing. Could you kindly give any example code for the K3 RTC? I have seen that there isn't RTC for the K3.
while get time and date, i got same value which i have configured through RTC. configured value not got incremented.(ex. seconds i set as 10S but while reading seconds value was not incrementing).
Hey, @VaneB Thank you for your response. I've figured out how to address this. In simple terms, I didn't modify the RTC clock source in your RTC API, it was set to 0 by default. I changed this clock source to 1 by altering the Init structure, and now that it's working, could you kindly fix the RTC channel clock source issue.
i have attached image for your reference.
Hi @Prasanth_C
The Rtc Channel Clock Source can be changed in the clock tool by modifying the RTC MUX.
Hi @Prasanth_C
Could you share your configurations? Which RTD version are you using?
Also, reviewing your code I saw that you do not call IntCtrl_Ip_EnableIrq(RTC_IRQn) to set the RTC 0 interrupt, try calling Rtc_Ip_EnableInterrupt() before starting the timer, and instead of using Rtc_Ip_StartTimer() use Rtc_Ip_StartCounter().
B.R.
VaneB