IMX-93 WDOG reset log record

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

IMX-93 WDOG reset log record

534 Views
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 Kudos
Reply
1 Reply

484 Views
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 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2157996%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX-93%20%20WDOG%20reset%20log%20record%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%3EI%20am%20using%20wdog1%20on%20the%20M-core%20to%20monitor%20the%20program.%20When%20it%20times%20out%2C%20it%20causes%20the%20entire%20system%20to%20reset.%20However%2C%20I%20want%20to%20record%20the%20reset%20reason%20using%20a%20logging%20feature.%20Is%20there%20any%20way%20to%20do%20this%3F%20Or%20is%20there%20any%20non-volatile%20memory%20available%20on%20the%20M-core%20that%20can%20be%20used%20for%20this%20purpose%3F%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%20%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20can%20write%20a%20small%20amount%20of%20logs%20while%20the%20interrupt%20is%20being%20processed.%20As%20for%20which%20memory%20to%20write%20to%2C%20you%20can%20choose%20QSPI%20FLASH%20or%20emmc.%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%3E%20INT%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%20%3D%201)%2C%20and%20after%20a%20reset-triggering%20event%20(such%20as%20a%20counter%20timeout%20or%20invalid%20refresh%20attempt)%2C%20WDOG.%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%3E%20INT%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%20%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%20%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E