Closed yogeshwaran774 closed 4 years ago
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.
Hardware:
Board: ESP32 Dev Module Core Installation version: 1.0.3 IDE name: Arduino IDE Flash Frequency: 40Mhz PSRAM enabled: no Upload Speed: 115200 Computer OS: Windows 10
Description:
I am using AsyncTcp library for OTA in my ESP32. My device Esp32 act as client and file downloaded from the server, then Update.write(); called to do OTA operation. So i wrote a call back "onData()" such that whenever data comes i read in a string and check for "#$#$#$#$#$" which i added in the bin file to detect the body of the response. When special string comes i know bin file data starts and i started pushing data to the OTA memory. Up to some point OTA write operation was proper, after sometime server disconnects, there it goes to disconnect callback and call Update.end(true) after that ESP throws error as E (15066) boot_comm: image has invalid chip ID, expected at least 0, found 35478 E (15067) boot_comm: image has invalid chip revision, expected at least 1, found 17 and i have checked total amount of bytes received 824092 bytes, but my original file size was 825210 bytes
FLASK SERVER CODE(host : 0.0.0.0) @app.route("/send_bin") def Update(): print("sending bin file",file=sys.stderr) filename = "test.ino.esp32.bin" return send_file(filename, mimetype='application/octet-stream')
Sketch:
when i call Update.end(true); the following was the debug message
Debug Messages: