gigio
New Member
Posts: 2
|
Post by gigio on Dec 18, 2019 16:43:03 GMT
someone could help me understand how to use it???
|
|
|
Post by Admin on Jan 6, 2020 12:05:02 GMT
|
|
pada
New Member
Posts: 2
|
Post by pada on Apr 15, 2020 11:57:55 GMT
Hello, Thanks for your example WatchDog.ino, it's work fine for me. But i have a question on the "reset" when the Watchdog time's out expire. I use a TC275 with a infinite while loop (SerialASC.print("Hello") , after the time's out, the loop stop, the Reset Red led on the shieldbuddy turn on, but the software don't restart automaticelly. I need to push the reset button on the shieldbuddy to restart the software. Do you know if it's a normal behaviour or i miss something on my code ? Thanks by advance
|
|
|
Post by mjb on Apr 15, 2020 16:02:13 GMT
Try adding this at the end of setup():
/* Make watchdog timeout cause a system reset */ uint16 endinitPw; endinitPw = IfxScuWdt_getCpuWatchdogPassword(); IfxScuWdt_clearSafetyEndinit(endinitPw);
SCU_RSTCON.B.SW = 1u;
IfxScuWdt_setSafetyEndinit(endinitPw);
|
|
pada
New Member
Posts: 2
|
Post by pada on Apr 16, 2020 12:14:44 GMT
Thank you for your return. I try to add your code in the end of my setup but nothing look like to have change. My code : WatchDog-v2.ino (3.59 KB) I try to put a watchdog in my equipment because something the shieldbuddy freeze. When she freeze, i try to restart the software automatically with the watchdog timeout. But no success for now with a simple code.
|
|
|
Post by Admin on Apr 17, 2020 9:49:27 GMT
This example might be better. The original one only allows one watchdog timeout. This one allows many timeouts and then restarts. WatchDog.ino (4.22 KB)
|
|
gigio
New Member
Posts: 2
|
Post by gigio on Nov 14, 2020 12:36:35 GMT
Thanks......
|
|