S32K314 MCAL RTC config

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K314 MCAL RTC config

463件の閲覧回数
zhouhui
Contributor I

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?

 

0 件の賞賛
返信
1 返信

399件の閲覧回数
NamLee
NXP Employee
NXP Employee

Hi zhouhui,

Please take a look at this.

Definition_of_RTC_IP_TICKS.png

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

GpthwIp_RTC.png

After configure GptRtc, please enable channel by tick them in HwConfiguration part.

RTC_ChannelIsUsed.png

Please let me know if have further information.

Thank you,

Nam.

0 件の賞賛
返信