s32k312 RTC time never changes RTC interrupts can be generated

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

s32k312 RTC time never changes RTC interrupts can be generated

ソリューションへジャンプ
1,873件の閲覧回数
guochuan
Contributor III

hi all

The project uses the internal RTC, the configured clock uses the external 32768Hz, the interrupt of RTC can be generated normally, call Rtc_Ip_GetTimeDate function, the obtained time is kept unchanged, check the clock is enabled, call Rtc_Ip_SetTimeDate function can write the time normally.

clock config:

guochuan_0-1678521584986.png

  • The function call flow is configured as follows

guochuan_1-1678521737339.png

Please help guide where the problem might be

thanks

0 件の賞賛
返信
1 解決策
1,817件の閲覧回数
guochuan
Contributor III

hi @Robin_Shen 

thank you reply.

Yes, RTC registers are always counting. Using Rtc_Ip_GetTimeDate to get the time is always constant.

guochuan_0-1678842235877.png

guochuan_1-1678842284019.png

rtc does not run without debugging.

guochuan_3-1678842952311.png

Please help guide, thank you.

 

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,826件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi 

Sorry for the delay.
Did you observe the RTC register during debugging to check whether the counter is increasing?
Is the data obtained by Rtc_Ip_GetTimeDate normal when not debugging?


Best Regards,
Robin

0 件の賞賛
返信
1,818件の閲覧回数
guochuan
Contributor III

hi @Robin_Shen 

thank you reply.

Yes, RTC registers are always counting. Using Rtc_Ip_GetTimeDate to get the time is always constant.

guochuan_0-1678842235877.png

guochuan_1-1678842284019.png

rtc does not run without debugging.

guochuan_3-1678842952311.png

Please help guide, thank you.

 

0 件の賞賛
返信
1,780件の閲覧回数
guochuan
Contributor III

The problem of RTC has been solved. AUTOSAR MCAL does not support the configuration of RTC. The test is normal after manual configuration。

0 件の賞賛
返信