IMX-93 WDOG reset log record

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

IMX-93 WDOG reset log record

647 次查看
leoX
Contributor I

翻译为英文如下:

I am using wdog1 on the M-core to monitor the program. When it times out, it causes the entire system to reset. However, I want to record the reset reason using a logging feature. Is there any way to do this? Or is there any non-volatile memory available on the M-core that can be used for this purpose?

0 项奖励
回复
1 回复

597 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

你可以在中断处理的时候写入少量日志。至于写入哪个存储器,可以选择QSPI FLASH,也可以选择emmc。

WDOG can generate an interrupt request to delay resets.

When interrupts are enabled (INT = 1), and after a reset-triggering event (such as a counter timeout or invalid refresh attempt), WDOG:

1. Generates an interrupt request.

2. Waits 128 bus clocks (from the interrupt vector fetch, not the reset-triggering event).

3. Forces a reset.

This process allows the ISR to perform tasks such as analyzing the stack to debug code. When interrupts are disabled (INT = 0), WDOG does not wait before forcing a reset



Best Regards,
Zhiming

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2157996%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX-93%20WDOG%20RESET%20%E6%97%A5%E5%BF%97%E8%AE%B0%E5%BD%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2157996%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E7%BF%BB%E8%AF%91%E4%B8%BA%E8%8B%B1%E6%96%87%E5%A6%82%E4%B8%8B%EF%BC%9A%3C%2FP%3E%3CP%3E%E6%88%91%E5%9C%A8%20M%20%E6%A0%B8%E5%BF%83%E4%B8%8A%E4%BD%BF%E7%94%A8%20wdog1%20%E6%9D%A5%E7%9B%91%E6%B5%8B%E8%AF%A5%E7%A8%8B%E5%BA%8F%E3%80%82%E5%BD%93%E5%AE%83%E8%B6%85%E6%97%B6%E6%97%B6%EF%BC%8C%E5%AE%83%E4%BC%9A%E5%AF%BC%E8%87%B4%E6%95%B4%E4%B8%AA%E7%B3%BB%E7%BB%9F%20RESET%E3%80%82%E4%BD%86%E6%98%AF%EF%BC%8C%E6%88%91%E6%83%B3%E4%BD%BF%E7%94%A8%E6%97%A5%E5%BF%97%E8%AE%B0%E5%BD%95%E5%8A%9F%E8%83%BD%E8%AE%B0%E5%BD%95RESET%E5%8E%9F%E5%9B%A0%E3%80%82%E6%9C%89%E5%8A%9E%E6%B3%95%E5%81%9A%E5%88%B0%E8%BF%99%E4%B8%80%E7%82%B9%E5%90%97%EF%BC%9F%E6%88%96%E8%80%85%20M-Core%20%E4%B8%8A%E6%98%AF%E5%90%A6%E6%9C%89%E4%BB%BB%E4%BD%95%E9%9D%9E%E6%98%93%E5%A4%B1%E6%80%A7%E5%AD%98%E5%82%A8%E5%99%A8%E5%8F%AF%E7%94%A8%E4%BA%8E%E6%AD%A4%E7%9B%AE%E7%9A%84%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2158701%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX-93%20%20WDOG%20reset%20log%20record%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2158701%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3E%E4%BD%A0%E5%8F%AF%E4%BB%A5%E5%9C%A8%E4%B8%AD%E6%96%AD%E5%A4%84%E7%90%86%E7%9A%84%E6%97%B6%E5%80%99%E5%86%99%E5%85%A5%E5%B0%91%E9%87%8F%E6%97%A5%E5%BF%97%E3%80%82%E8%87%B3%E4%BA%8E%E5%86%99%E5%85%A5%E5%93%AA%E4%B8%AA%E5%AD%98%E5%82%A8%E5%99%A8%EF%BC%8C%E5%8F%AF%E4%BB%A5%E9%80%89%E6%8B%A9QSPI%20FLASH%EF%BC%8C%E4%B9%9F%E5%8F%AF%E4%BB%A5%E9%80%89%E6%8B%A9emmc%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22fontstyle0%22%3EWDOG%20can%20generate%20an%20interrupt%20request%20to%20delay%20resets.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22fontstyle0%22%3EWhen%20interrupts%20are%20enabled%20(%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle0%22%3EINT%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%3D%201)%2C%20and%20after%20a%20reset-triggering%20event%20(such%20as%20a%20counter%20timeout%20or%20invalid%20refresh%20attempt)%2C%20WDOG%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22fontstyle0%22%3E1.%20Generates%20an%20interrupt%20request.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22fontstyle0%22%3E2.%20Waits%20128%20bus%20clocks%20(from%20the%20interrupt%20vector%20fetch%2C%20not%20the%20reset-triggering%20event).%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22fontstyle0%22%3E3.%20Forces%20a%20reset.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CLI-WRAPPER%3E%3CSPAN%20class%3D%22fontstyle0%22%3EThis%20process%20allows%20the%20ISR%20to%20perform%20tasks%20such%20as%20analyzing%20the%20stack%20to%20debug%20code.%20When%20interrupts%20are%20disabled%20(%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle0%22%3EINT%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%3D%200)%2C%20WDOG%20does%20not%20wait%20before%20forcing%20a%20reset%3C%2FSPAN%3E%20%3CBR%20%2F%3E%3C%2FLI-WRAPPER%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E