Hi,
I have run the code for WDOG interrupt, after hitting breakpoint in WDOG_ISR the control is not coming to main code, instead it is going some disassembly location, after halting the execution.
Please support on this
Thanks
Hi @Shruthi_C,
The MCU is always reset when the WDOG overflows.
The WDOG interrupt only delays the reset.
The RCM interrupt can delay it further if enabled as it examplainde here:
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-WDOG-RCM-interrupt/ta-p/1107039
It is not possible to halt the execution at a breakpoint within the interrupts.
Regards,
Daniel
Hi Denil,
Failed to enter main() of application
I am getting errors like this, after WDOG reset
Mon Feb 13, 2023 13:50:26: CPU status - IN RESET
Mon Feb 13, 2023 13:50:26: Notification to init-after-hw-reset hookup.
Mon Feb 13, 2023 13:50:26: DMAC: MDM-AP detected
Mon Feb 13, 2023 13:50:26: Connecting to TAP#0 DAP AHB-AP-CM port 0x0 (IDR=0x2477'0011).
Mon Feb 13, 2023 13:50:26: Recognized CPUID=0x410fc241 Cortex-M4 r0p1 arch ARMv7-M
Mon Feb 13, 2023 13:50:26: Debug resources: 6 instruction comparators, 4 data watchpoints.
Mon Feb 13, 2023 13:50:26: Processor did not stop on external reset.
How can I get the control over to main() after WDOG reset in S32K146
Please support
Thank U
Hi @Shruthi_C,
You need to connect the debugger to the running MCU again after the reset .
I don't know which debugger you use.
BR, Daniel
Hi,
Using debugger, I-Jet
Thank you
Unfortunately, I have no experience with I-jet / IAR IDE.
I guess it must be described in the documention of the tools.
You can contact IAR system support.
Regards,
Daniel
Hi,
Ok, Thank you
Hi
Is that WDOG interrupt for S32K146 is working fine with your EVB board, please share the details.
Thank you,
Yes, the WDOG interrupt works on the EVBs.
I believe all the details are explained in the document I linked here.
Hi,
For EVB board if we do power on reset, it will run default code but not what we flashed into it, Is this the same case for WDOG? please confirm
Thank U
You need to load the project in the the Flash not SRAM.
I think this can be the issue.
BR, Daniel
Thank you for your response