I want to use hardware watchdog for MK22FN1M0AVMC12

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

I want to use hardware watchdog for MK22FN1M0AVMC12

Jump to solution
612 Views
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 Kudos
Reply
1 Solution
575 Views
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

 

View solution in original post

0 Kudos
Reply
1 Reply
576 Views
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 Kudos
Reply