Hello Team ,
I am using MK22FN1M0AVMC12 microcontroller
MQX4.2 RTOS
Kinetis design studio IDE
I want to use Hardware watchdog (Not software watchdog)
Do you have any Example.
Thanks
Sudhanshu
已解决! 转到解答。
Hi,
If you hope that the watchdog can reset the K22 when the chip hangs, the watchdog is not related to RTOS, you just need to initialize the watchdog, and use a timer to generate interrupt, in the ISR, you can feed dog, it is okay. In the code, you have to set the Timer interrupt priority higher that the RTOS interrupt priority.
You can download SDK package for the K22:
then load the watchdog example.
Hope it can help you
BR
XiangJun Rong
Hi,
If you hope that the watchdog can reset the K22 when the chip hangs, the watchdog is not related to RTOS, you just need to initialize the watchdog, and use a timer to generate interrupt, in the ISR, you can feed dog, it is okay. In the code, you have to set the Timer interrupt priority higher that the RTOS interrupt priority.
You can download SDK package for the K22:
then load the watchdog example.
Hope it can help you
BR
XiangJun Rong