I want to use hardware watchdog for MK22FN1M0AVMC12

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

I want to use hardware watchdog for MK22FN1M0AVMC12

跳至解决方案
564 次查看
sudhanshumehta
Contributor IV

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

0 项奖励
回复
1 解答
527 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

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:

https://mcuxpresso.nxp.com/en

then load the watchdog example.

xiangjun_rong_0-1728983111017.png

 

 

Hope it can help you

BR

XiangJun Rong

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
528 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

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:

https://mcuxpresso.nxp.com/en

then load the watchdog example.

xiangjun_rong_0-1728983111017.png

 

 

Hope it can help you

BR

XiangJun Rong

 

0 项奖励
回复