watchdog test with freeRtos

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

watchdog test with freeRtos

跳至解决方案
1,644 次查看
Lily_31_amz
Contributor II

Hello,

i need to perfrom a simple watch dog test, to check if it reset the MCU correctly.

i used the example provided in the sdk, and indeed after 8 cycle the MCU reset

Lily_31_amz_0-1654603856017.png

after that the modul does not restart automatically, even after a power OFF-ON,

is it possible to implement a Reset_Handler ? once the MCU reset i restart automatically and i can check if the reset was done correctly.

Thank you.

标记 (3)
0 项奖励
1 解答
1,628 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Lily_31_amz,

I understand you are not testing the WDOG fast test feature but you are just testing if the WDOG can reset the MCU.

It seems like the WDOG works and the MCU is reset, but the debugger catches it at the reset vector.

This is not an issue of the MCU though. This is the debugger.

For example, the PE Micro plugin in S32DS has this settings:

danielmartynek_0-1654774532562.png

 

Regards,

Daniel

 

 

在原帖中查看解决方案

5 回复数
1,636 次查看
Lily_31_amz
Contributor II

Hello Daniel,

i have the S32K148EVB-Q176 and im using freeRTOS as OS, also im using the S32 design studio.

basically i should send a command by CAN to start the watchdog test and once finished i should send a CAN response saying that Watchdog test is passed Good/Fail.

can you please help on how to start a watchdog test, i used the code from SDK example is here

Thank you.

0 项奖励
1,629 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Lily_31_amz,

I understand you are not testing the WDOG fast test feature but you are just testing if the WDOG can reset the MCU.

It seems like the WDOG works and the MCU is reset, but the debugger catches it at the reset vector.

This is not an issue of the MCU though. This is the debugger.

For example, the PE Micro plugin in S32DS has this settings:

danielmartynek_0-1654774532562.png

 

Regards,

Daniel

 

 

1,613 次查看
Lily_31_amz
Contributor II

Thanks a lot Daniel,

what is the idea of watchdog fast test ? and is it checking also if the MCU reset ?

Thank you.

0 项奖励
1,607 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Lily_31_amz,

It is explained in the RM, Section 23.4.7 Fast testing of the watchdog.

This example shows how to use it:

https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K116-WDOG-Fast-Test/ta-p/1103420

 

BR, Daniel

0 项奖励
1,638 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Lily_31_amz,

Which S32K part do you use?

There is an example ported on S32K116

https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K116-WDOG-Fast-Test/ta-p/1103420

The source of the reset is read in the startup code.

 

BR, Daniel

0 项奖励