How to feed watch dog?

baoshi
Posts: 23
Joined: Tue Dec 02, 2014 8:35 pm

How to feed watch dog?

Postby baoshi » Sat Feb 14, 2015 11:53 pm

I'm using RTOS SDK and I have some operations (filling a LCD frame buffer) that takes a while. It causes watch dog reset.
I would like to know:

1. How long exact is watch dog timeout?
2. How to feed watch dog?

Thanks

Baoshi

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: How to feed watch dog?

Postby ESP_Faye » Sun Feb 15, 2015 10:24 am

Hi,

Thanks for your interest in ESP8266 !

1. watch dog timeout is about 1 second
2. sorry that we don't have any API to feed the dog,so please call vTaskDelay in your while 1

User avatar
kolban
Posts: 131
Joined: Tue Jun 16, 2015 1:09 pm
Location: Fort Worth, Texas, USA

Re: How to feed watch dog?

Postby kolban » Wed Nov 11, 2015 9:05 am

In a sample I wrote, I coded a vTaskDelay in my loop but unfortunately, the WDT still fires ... see the following post:

viewtopic.php?f=7&t=1360

EliteScientist
Posts: 10
Joined: Sat Nov 21, 2015 5:08 pm

Re: How to feed watch dog?

Postby EliteScientist » Sat Nov 21, 2015 5:12 pm

Is there any updates for this? Also I'm getting a WDT Reset when sending data using espconn_send under RTOS 1.3.0

The first connection is fine. the second connection never actually sends the data then results in a WDT reset.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: How to feed watch dog?

Postby ESP_Faye » Mon Nov 23, 2015 2:19 pm

Hi EliteScientist,

Could you provide your test code for debugging ?

Thanks for your interest in ESP8266 !

EliteScientist
Posts: 10
Joined: Sat Nov 21, 2015 5:08 pm

Re: How to feed watch dog?

Postby EliteScientist » Thu Nov 26, 2015 7:44 am

It was my error. I ended up changing my routine to write data -> if busy then queue data-> when data sent free data and process next item in queue. This fixed my issues of the WDT in espconn_send.

I still have several outstanding issues with espconn. I probably should start a new thread. I'm seeing occasional fatal exceptions which appear to be caused by a pvPortRealloc call after calling espconn_send, after a connection closes I'm not getting a callback, after calling espconn_igmp_join, I am not getting a callback for the multicast packets.

I think I'll try to isolate these issues in separate projects and send them to you guys. That will help differentiate between errors that may be in my code and errors that may be caused by the SDK.

Who is online

Users browsing this forum: No registered users and 22 guests