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

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

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

跳至解决方案
1,079 次查看
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 项奖励
回复
1 解答
1,053 次查看
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 项奖励
回复
3 回复数
1,054 次查看
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 项奖励
回复
1,033 次查看
SCoder41
Contributor III
I have sent you the code via private message.
0 项奖励
回复
1,038 次查看
SCoder41
Contributor III
My code size exceeds 25MB, is there any other way to send it to you?
0 项奖励
回复