hi, I am using S32K314 MCAL to config RTC.
In the project, RTC clock is 32.768Khz, so config "RTC_IP_CLOCK_SOURCE_0" as rtc clock source, and enable DivBy512 & DivBy32, automatic calculate GptChannelTickFrequency value is 2.
But EB generate RTC code, RTC_IP_TICKS_PER_SECOND value always is 0, so get time is wrong. So how can I change the value through mcal configuration?
Hi zhouhui,
Please take a look at this.
Maybe the value 0 comes from the fact that you didn't enable RTC in GptHwIp, or RTC conditions are met but calculated value for in used clock still 0.
Please add RTC channel configuration
After configure GptRtc, please enable channel by tick them in HwConfiguration part.
Please let me know if have further information.
Thank you,
Nam.