RTWDOG not working as expected (WDOG3 RT1020)

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

RTWDOG not working as expected (WDOG3 RT1020)

跳至解决方案
1,047 次查看
ikuzmych
Contributor II

rtwdog_prototype_code.jpg

Here is a snippet of my code attempting to initialize and include the RTWDOG in my design using an RT1020 dev board. However, when I run my tests it seems to either never actually initialize or not have an active clock. I changed the clock source to be the clockSource1, which has a slower clock and after prescaling allows me to create a 3-second timeout window. However, when running my tests and not refreshing it, it does not seem to refresh my MCU. Any recommendations on how I can change my code to enable or initialize the RTWDOG so it behaves as I expect? Any help is appreciated!

标签 (1)
0 项奖励
回复
1 解答
1,041 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ikuzmych ,

   To the RTWDOG, do you test the RT1020 SDK code at first:

SDK_2_11_0_EVK-MIMXRT1020\boards\evkmimxrt1020\driver_examples\rtwdog

  After this works, then you can based on this code do the modificaiton.

  The above code must work.

  Please check it first.

  If you still have issues with it, please kindly let me know.

Best Regards,

Kerry

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,038 次查看
ikuzmych
Contributor II

Hi Kerry, 

I realized it was due to the fact that I was initializing the rtwdog in a sub-task rather than the main function. Thanks for your help

0 项奖励
回复
1,037 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ikuzmych ,

   You are welcome!

   So, your issue is solved now, right?

  If your question is solved, please help me to mark the correct answer, just to close this case, any new issues, welcome to create the new question post, thanks.

 

Best Regards,

Kerry

0 项奖励
回复
1,042 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ikuzmych ,

   To the RTWDOG, do you test the RT1020 SDK code at first:

SDK_2_11_0_EVK-MIMXRT1020\boards\evkmimxrt1020\driver_examples\rtwdog

  After this works, then you can based on this code do the modificaiton.

  The above code must work.

  Please check it first.

  If you still have issues with it, please kindly let me know.

Best Regards,

Kerry

 

0 项奖励
回复