RTC callback function cannot be triggered

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

RTC callback function cannot be triggered

跳至解决方案
784 次查看
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 解答
746 次查看
SCoder41
Contributor III

Yes, I did all of these。

2.png3.png4.png

在原帖中查看解决方案

0 项奖励
回复
2 回复数
764 次查看
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 项奖励
回复
747 次查看
SCoder41
Contributor III

Yes, I did all of these。

2.png3.png4.png

0 项奖励
回复