翻译为英文如下:
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?
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.
Best Regards,
Zhiming