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
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.
Solved! Go to Solution.
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:
Regards,
Daniel
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.
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:
Regards,
Daniel
Thanks a lot Daniel,
what is the idea of watchdog fast test ? and is it checking also if the MCU reset ?
Thank you.
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
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