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!
Solved! Go to Solution.
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
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
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
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