WDOG interrupt for S32k146

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

WDOG interrupt for S32k146

4,400件の閲覧回数
Shruthi_C
Contributor III

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.pngShruthi_C_0-1676014620641.png

Please support on this

Thanks

 

0 件の賞賛
返信
11 返答(返信)

4,386件の閲覧回数
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 件の賞賛
返信

4,371件の閲覧回数
Shruthi_C
Contributor III

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 件の賞賛
返信

4,362件の閲覧回数
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 件の賞賛
返信

4,360件の閲覧回数
Shruthi_C
Contributor III

Hi,

Using debugger, I-Jet 

Thank you 

0 件の賞賛
返信

4,355件の閲覧回数
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 件の賞賛
返信

4,351件の閲覧回数
Shruthi_C
Contributor III

Hi,

Ok, Thank you

0 件の賞賛
返信

4,338件の閲覧回数
Shruthi_C
Contributor III

Hi

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

 

Thank you,

0 件の賞賛
返信

4,334件の閲覧回数
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 件の賞賛
返信

4,337件の閲覧回数
Shruthi_C
Contributor III

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 件の賞賛
返信

4,333件の閲覧回数
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 件の賞賛
返信

4,298件の閲覧回数
Shruthi_C
Contributor III

Thank you for your response

0 件の賞賛
返信