WDOG interrupt for S32k146

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

WDOG interrupt for S32k146

1,307 Views
Shruthi_C
Contributor II

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.

Shruthi_C_0-1676014620641.png

Please support on this

Thanks

 

0 Kudos
11 Replies

1,293 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

0 Kudos

1,278 Views
Shruthi_C
Contributor II

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

 

0 Kudos

1,269 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

 

0 Kudos

1,267 Views
Shruthi_C
Contributor II

Hi,

Using debugger, I-Jet 

Thank you 

0 Kudos

1,262 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

0 Kudos

1,258 Views
Shruthi_C
Contributor II

Hi,

Ok, Thank you

0 Kudos

1,245 Views
Shruthi_C
Contributor II

Hi

Is that WDOG interrupt for S32K146 is working fine with your EVB board, please share the details.

 

Thank you,

0 Kudos

1,241 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Yes, the WDOG interrupt works on the EVBs.

I believe all the details are explained in the document I linked here.

 

 

0 Kudos

1,244 Views
Shruthi_C
Contributor II

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

0 Kudos

1,240 Views
danielmartynek
NXP TechSupport
NXP TechSupport

You need to load the project in the the Flash not SRAM.

I think this can be the issue.

 

BR, Daniel

0 Kudos

1,205 Views
Shruthi_C
Contributor II

Thank you for your response

0 Kudos