RTWDOG not working as expected (WDOG3 RT1020)

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

RTWDOG not working as expected (WDOG3 RT1020)

Jump to solution
791 Views
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!

Labels (1)
0 Kudos
1 Solution
785 Views
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

 

View solution in original post

0 Kudos
3 Replies
782 Views
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 Kudos
781 Views
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 Kudos
786 Views
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 Kudos