WDOG interrupt for S32k146

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

WDOG interrupt for S32k146

4,280 次查看
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.png

Please support on this

Thanks

 

0 项奖励
回复
11 回复数

4,266 次查看
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,251 次查看
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,242 次查看
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,240 次查看
Shruthi_C
Contributor III

Hi,

Using debugger, I-Jet 

Thank you 

0 项奖励
回复

4,235 次查看
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,231 次查看
Shruthi_C
Contributor III

Hi,

Ok, Thank you

0 项奖励
回复

4,218 次查看
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,214 次查看
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,217 次查看
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,213 次查看
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,178 次查看
Shruthi_C
Contributor III

Thank you for your response

0 项奖励
回复