Hello:
How should I configure the register to trigger an interrupt when the watchdog times out instead of directly resetting the MCU? I tried to set the WDOG_CS[INT] register to 1,and set the RCM_SRIE[WDOG] register to 1,but when I debug,the function WDOG_EWM_IRQHandler is not running.
Hi
Please refer to the discussion in WDOG direct reset does not enter the interrupt(S32K144).
Forced reset occurs 128 bus clocks after the interrupt vector fetch. Breakpoint is not a good way to observe whether to enter the watchdog interrupt. You can judge whether watchdog interrupt entered by flipping the IO in ISR or by observing the value of the variable is changed by ISR.
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------