RTC callback function cannot be triggered

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RTC callback function cannot be triggered

Jump to solution
881 Views
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 Kudos
Reply
1 Solution
843 Views
SCoder41
Contributor III

Yes, I did all of these。

2.png3.png4.png

View solution in original post

0 Kudos
Reply
2 Replies
861 Views
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 Kudos
Reply
844 Views
SCoder41
Contributor III

Yes, I did all of these。

2.png3.png4.png

0 Kudos
Reply