Watchdog

Discussion related to "under the hood" OpenMV topics.
Gonzague
Posts: 4
Joined: Thu Oct 05, 2017 8:46 am

Watchdog

Postby Gonzague » Thu Oct 05, 2017 8:57 am

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 ?
User avatar
kwagyeman
Posts: 1248
Joined: Sun May 24, 2015 2:10 pm

Re: Watchdog

Postby kwagyeman » Thu Oct 05, 2017 11:11 am

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.
Nyamekye,
User avatar
iabdalkader
Posts: 380
Joined: Sun May 24, 2015 3:53 pm

Re: Watchdog

Postby iabdalkader » Thu Oct 05, 2017 7:49 pm

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.
Gonzague
Posts: 4
Joined: Thu Oct 05, 2017 8:46 am

Re: Watchdog

Postby Gonzague » Fri Oct 06, 2017 8:54 am

Hi,
I upgraded the firmware from the repo and now it works properly.
Thanks for your help !

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests