Page 1 of 1

Watchdog

Posted: Thu Oct 05, 2017 8:57 am
by Gonzague
Hi,
I am trying to implement a wathdog on my OpenMV Cam M7.
As explained to that link : http://docs.openmv.io/library/machine.WDT.html
I wrote that code :

import machine
watchdog = machine.WDT(timeout=1000)
while(True):
watchdog.feed()


But when I run the script I get this error :
AttributeError: 'module' object has no attribute 'WDT'

Do somebody know how to use correctly the watchdog timer ?

Re: Watchdog

Posted: Thu Oct 05, 2017 11:11 am
by kwagyeman
Mmm, it might be disabled in our code. Can you summit a bug to the GitHub repo about this. It will get fixed then for the next firmware release.

Re: Watchdog

Posted: Thu Oct 05, 2017 7:49 pm
by iabdalkader
Hi,
This code is enabled in the current development firmware. If you don't want to wait for the next release, you can clone the repo and upload the firmware image.

Re: Watchdog

Posted: Fri Oct 06, 2017 8:54 am
by Gonzague
Hi,
I upgraded the firmware from the repo and now it works properly.
Thanks for your help !