S32K344 resets every three days or RTC system clock returns to initial value every three days

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

S32K344 resets every three days or RTC system clock returns to initial value every three days

Jump to solution
1,104 Views
SCoder41
Contributor III

(S32K344) I implemented a function where the RTC system clock was set to an initial value (2025-3-11 15:25:0), and then the current system time was obtained every 0.5 seconds and stored on the SD card. I tested continuously for 7 days, but after 7 days, I found that the logs in the SD card would return to the initial value of 2025-3-11 15:25:0 every time it reached [2025-3-13, 4:41:57]. Is it because the system reset or is it just an issue with RTC?

8.png

0 Kudos
Reply
1 Solution
1,078 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @SCoder41,

Just from the log, I am unable to pinpoint if the issue is mainly the RTC or the MCU. Could you share the code (either here, or by a private message). If not, could you share exactly what the code does? 

Also, if the reset source is not a SW reset, (i.e. hardware reset), the counter value will be reset. You must configure either SIRC or SXOSC, and perform SW reset to avoid resetting the counter: Solved: Does the S32K312 RTC support system time keeping at reset? - NXP Community

Best regards,
Julián

View solution in original post

0 Kudos
Reply
3 Replies
1,079 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @SCoder41,

Just from the log, I am unable to pinpoint if the issue is mainly the RTC or the MCU. Could you share the code (either here, or by a private message). If not, could you share exactly what the code does? 

Also, if the reset source is not a SW reset, (i.e. hardware reset), the counter value will be reset. You must configure either SIRC or SXOSC, and perform SW reset to avoid resetting the counter: Solved: Does the S32K312 RTC support system time keeping at reset? - NXP Community

Best regards,
Julián

0 Kudos
Reply
1,058 Views
SCoder41
Contributor III
I have sent you the code via private message.
0 Kudos
Reply
1,063 Views
SCoder41
Contributor III
My code size exceeds 25MB, is there any other way to send it to you?
0 Kudos
Reply