I want to use hardware watchdog for MK22FN1M0AVMC12

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

I want to use hardware watchdog for MK22FN1M0AVMC12

ソリューションへジャンプ
590件の閲覧回数
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 解決策
553件の閲覧回数
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 返信
554件の閲覧回数
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 件の賞賛
返信