watchdog test with freeRtos

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

watchdog test with freeRtos

Jump to solution
1,609 Views
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.

Tags (3)
0 Kudos
1 Solution
1,593 Views
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

 

 

View solution in original post

5 Replies
1,601 Views
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 Kudos
1,594 Views
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,578 Views
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 Kudos
1,572 Views
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 Kudos
1,603 Views
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 Kudos