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,863 次查看
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,837 次查看
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,838 次查看
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,817 次查看
SCoder41
Contributor III
I have sent you the code via private message.
0 项奖励
回复
1,822 次查看
SCoder41
Contributor III
My code size exceeds 25MB, is there any other way to send it to you?
0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2063580%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K344%E6%AF%8F%E4%B8%89%E5%A4%A9%E9%87%8D%E7%BD%AE%E4%B8%80%E6%AC%A1%E6%88%96RTC%E7%B3%BB%E7%BB%9F%E6%97%B6%E9%92%9F%E6%AF%8F%E4%B8%89%E5%A4%A9%E6%81%A2%E5%A4%8D%E5%88%9D%E5%A7%8B%E5%80%BC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2063580%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%EF%BC%88S32K344%EF%BC%89%E6%88%91%E5%AE%9E%E7%8E%B0%E4%BA%86%E4%B8%80%E4%B8%AA%E5%8A%9F%E8%83%BD%EF%BC%8C%E5%B0%86RTC%E7%B3%BB%E7%BB%9F%E6%97%B6%E9%92%9F%E8%AE%BE%E7%BD%AE%E4%B8%BA%E5%88%9D%E5%A7%8B%E5%80%BC%EF%BC%882025-3-11%2015%3A25%3A0%EF%BC%89%EF%BC%8C%E7%84%B6%E5%90%8E%E6%AF%8F0.5%E7%A7%92%E8%8E%B7%E5%8F%96%E4%B8%80%E6%AC%A1%E5%BD%93%E5%89%8D%E7%B3%BB%E7%BB%9F%E6%97%B6%E9%97%B4%E5%B9%B6%E5%AD%98%E5%82%A8%E5%9C%A8SD%E5%8D%A1%E4%B8%8A%E3%80%82%E6%88%91%E8%BF%9E%E7%BB%AD%E6%B5%8B%E8%AF%95%E4%BA%867%E5%A4%A9%EF%BC%8C%E4%BD%86%E6%98%AF7%E5%A4%A9%E4%B9%8B%E5%90%8E%E5%8F%91%E7%8E%B0SD%E5%8D%A1%E9%87%8C%E7%9A%84%E6%97%A5%E5%BF%97%E6%AF%8F%E6%AC%A1%E5%88%B0%5B2025-3-13%2C4%3A41%3A57%5D%E5%B0%B1%E4%BC%9A%E5%9B%9E%E5%88%B0%E5%88%9D%E5%A7%8B%E5%80%BC2025-3-11%2015%3A25%3A0%E3%80%82%E6%98%AF%E5%9B%A0%E4%B8%BA%E7%B3%BB%E7%BB%9F%E9%87%8D%E7%BD%AE%E8%BF%98%E6%98%AF%E4%BB%85%E4%BB%85%E6%98%AF%20RTC%20%E7%9A%84%E9%97%AE%E9%A2%98%EF%BC%9F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%228.png%22%20style%3D%22width%3A%20358px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%228.png%22%20style%3D%22width%3A%20358px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F328576i75413CD48A3FDAA3%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%228.png%22%20alt%3D%228.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2064239%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AS32K344%E6%AF%8F%E4%B8%89%E5%A4%A9%E9%87%8D%E7%BD%AE%E4%B8%80%E6%AC%A1%E6%88%96RTC%E7%B3%BB%E7%BB%9F%E6%97%B6%E9%92%9F%E6%AF%8F%E4%B8%89%E5%A4%A9%E8%BF%94%E5%9B%9E%E5%88%9D%E5%A7%8B%E5%80%BC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2064239%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%88%91%E5%B7%B2%E9%80%9A%E8%BF%87%E7%A7%81%E4%BA%BA%E6%B6%88%E6%81%AF%E5%90%91%E6%82%A8%E5%8F%91%E9%80%81%E4%BA%86%E4%BB%A3%E7%A0%81%E3%80%82%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2064194%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AS32K344%E6%AF%8F%E4%B8%89%E5%A4%A9%E9%87%8D%E7%BD%AE%E4%B8%80%E6%AC%A1%E6%88%96RTC%E7%B3%BB%E7%BB%9F%E6%97%B6%E9%92%9F%E6%AF%8F%E4%B8%89%E5%A4%A9%E8%BF%94%E5%9B%9E%E5%88%9D%E5%A7%8B%E5%80%BC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2064194%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%88%91%E7%9A%84%E4%BB%A3%E7%A0%81%E5%A4%A7%E5%B0%8F%E8%B6%85%E8%BF%87%2025MB%EF%BC%8C%E8%BF%98%E6%9C%89%E5%85%B6%E4%BB%96%E6%96%B9%E6%B3%95%E5%8F%AF%E4%BB%A5%E5%8F%91%E9%80%81%E7%BB%99%E6%82%A8%E5%90%97%EF%BC%9F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2064138%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AS32K344%E6%AF%8F%E4%B8%89%E5%A4%A9%E9%87%8D%E7%BD%AE%E4%B8%80%E6%AC%A1%E6%88%96RTC%E7%B3%BB%E7%BB%9F%E6%97%B6%E9%92%9F%E6%AF%8F%E4%B8%89%E5%A4%A9%E8%BF%94%E5%9B%9E%E5%88%9D%E5%A7%8B%E5%80%BC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2064138%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F230508%22%20target%3D%22_blank%22%3E%40SCoder41%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%E4%BB%85%E4%BB%8E%E6%97%A5%E5%BF%97%E6%9D%A5%E7%9C%8B%EF%BC%8C%E6%88%91%E6%97%A0%E6%B3%95%E7%A1%AE%E5%AE%9A%E9%97%AE%E9%A2%98%E4%B8%BB%E8%A6%81%E6%98%AF%20RTC%20%E8%BF%98%E6%98%AF%20MCU%E3%80%82%E6%82%A8%E8%83%BD%E5%90%A6%E5%88%86%E4%BA%AB%E4%BB%A3%E7%A0%81%EF%BC%88%E5%9C%A8%E8%BF%99%E9%87%8C%EF%BC%8C%E6%88%96%E8%80%85%E9%80%9A%E8%BF%87%E7%A7%81%E4%BA%BA%E6%B6%88%E6%81%AF%EF%BC%89%E3%80%82%E5%A6%82%E6%9E%9C%E6%B2%A1%E6%9C%89%EF%BC%8C%E6%82%A8%E8%83%BD%E5%90%A6%E5%88%86%E4%BA%AB%E4%BB%A3%E7%A0%81%E7%9A%84%E5%85%B7%E4%BD%93%E5%8A%9F%E8%83%BD%EF%BC%9F%3C%2FP%3E%0A%3CP%3E%E6%AD%A4%E5%A4%96%EF%BC%8C%E5%A6%82%E6%9E%9C%E5%A4%8D%E4%BD%8D%E6%BA%90%3CSTRONG%3E%E4%B8%8D%E6%98%AF%3C%2FSTRONG%3ESW%20%E5%A4%8D%E4%BD%8D%EF%BC%8C%EF%BC%88%E5%8D%B3%E7%A1%AC%E4%BB%B6%E5%A4%8D%E4%BD%8D%E5%90%8E%EF%BC%8C%E8%AE%A1%E6%95%B0%E5%99%A8%E5%80%BC%E5%B0%86%E8%A2%AB%E9%87%8D%E7%BD%AE%E3%80%82%E6%82%A8%E5%BF%85%E9%A1%BB%E9%85%8D%E7%BD%AE%20SIRC%20%E6%88%96%20SXOSC%EF%BC%8C%E5%B9%B6%E6%89%A7%E8%A1%8C%20SW%20%E9%87%8D%E7%BD%AE%E4%BB%A5%E9%81%BF%E5%85%8D%E9%87%8D%E7%BD%AE%E8%AE%A1%E6%95%B0%E5%99%A8%EF%BC%9A%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FDoes-the-S32K312-RTC-support-system-time-keeping-at-reset%2Ftd-p%2F1650987%3Flightbox-message-images-1651330%3D223411i2393920E7738C70B%22%20target%3D%22_blank%22%3E%E5%B7%B2%E8%A7%A3%E5%86%B3%EF%BC%9AS32K312%20RTC%20%E6%98%AF%E5%90%A6%E6%94%AF%E6%8C%81%E9%87%8D%E7%BD%AE%E6%97%B6%E7%9A%84%E7%B3%BB%E7%BB%9F%E6%97%B6%E9%97%B4%E4%BF%9D%E6%8C%81%EF%BC%9F%20-%20NXP%20%E7%A4%BE%E5%8C%BA%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EJuli%C3%A1n%3C%2FP%3E%3C%2FLINGO-BODY%3E