Skip to content

WDT Reset Issue While Flashing #16

Description

@dj095

There is one thing i would like to ask you @pfalcon :

I took a working copy of micropython ota build 1.8.7 from the downloads page of micropython.
And flashed it onto my esp12F Module. It works fine by the way.
Then i used the .ota file that was digitally signed with with same key as the micropython .bin file.
Then i used your ota_client.py script and ran it with the .ota file when the ota-server was
listening(OTA Mode). The .ota file was signed with same digital signature as included in the config
file for the ota_server. So the server started picking up the digitally signed packages and after a
while a reset happened due to the WatchDogTimer(WDT Reset).
Then the rest of the packages didn't go through. It says "Unexpected offset". Of course the offset
that the ota_server expects now is 0 because it restarted. So I studied your code for ota_server
and found a line wdt_timer_feed() to keep the WDT fed.
I want to incorporate this line in your Server loop when its receiving UDP Diagram packets. So i
how can i incorporate this change such that its supported in the micropython esp8266 1.8.7 code
? And will this change actually stop the WDT_Timer while receving packets?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions