RTC callback function cannot be triggered

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

RTC callback function cannot be triggered

ソリューションへジャンプ
796件の閲覧回数
SCoder41
Contributor III

I am using the S32K344 chip and plan to use RTC to generate logs with timestamps and store them in the SD card, but I am unable to access callback functions.1.png

0 件の賞賛
返信
1 解決策
758件の閲覧回数
SCoder41
Contributor III

Yes, I did all of these。

2.png3.png4.png

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
776件の閲覧回数
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @SCoder41,

Have you set a date and time configuration for the RTC? You also need to set the interrupt driver for the RTC IRQ:

DateandTime.png

InterruptControllerRTC.png

After setting a date and time, and the RTC IRQ, the RTC alarm callback should be stepped into when the alarm date&time = current date&time.

Keep in mind you do need to install the handler and enable the IRQ in the source code, as well as setting the time&date, configuring the alarm, enabling interrupt and starting the counter to enable the basic functionality of the RTC alarm.

Best regards,
Julián

0 件の賞賛
返信
759件の閲覧回数
SCoder41
Contributor III

Yes, I did all of these。

2.png3.png4.png

0 件の賞賛
返信