WDOG interrupt for S32k146

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

WDOG interrupt for S32k146

1,677件の閲覧回数
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 件の賞賛
返信
11 返答(返信)

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

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

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

1,637件の閲覧回数
Shruthi_C
Contributor II

Hi,

Using debugger, I-Jet 

Thank you 

0 件の賞賛
返信

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

1,628件の閲覧回数
Shruthi_C
Contributor II

Hi,

Ok, Thank you

0 件の賞賛
返信

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

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

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

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

1,575件の閲覧回数
Shruthi_C
Contributor II

Thank you for your response

0 件の賞賛
返信