-->
Page 1 of 2

ESP8622 programmer using ESP8266

PostPosted: Wed Sep 13, 2017 7:11 am
by eriksl
Has anyone already tried to make an ESP8266 serial programmer using an ESP8266?

Something like ESP8266_1 connects to ESP8266_2 using serial, ESP8266_1 pulls up and down the GPIO_0, GPIO_2 and RST lines of ESP8266 and starts sending the new firmware.

Most of this is not rocket science, but I am too lazy to reverse engineer esptool.py as to what exactly to send, especially the blob of program code that apparentely is sent to to communicate with the outside world.

I thought maybe someone has done this before? Or has already reverse engineered whatever esptool.py sends (and receives)?

Re: ESP8622 programmer using ESP8266

PostPosted: Wed Sep 13, 2017 1:17 pm
by martinayotte
eriksl wrote:but I am too lazy to reverse engineer esptool.py

You don't have much choice ...
Or you can do some OTA between the 2 ESP, but that assume that OTA had been flashed earlier.

Re: ESP8622 programmer using ESP8266

PostPosted: Thu Sep 14, 2017 8:29 am
by eriksl
I was hoping someone would have some knowledge about the protocol used, so I wouldn't have to reverse engineer it.

And yes, the idea is that you have at least one esp8266 already programmed witht the proper programming firmware (that I would write, then).

Re: ESP8266 programmer using ESP8266

PostPosted: Mon Sep 18, 2017 5:12 am
by eriksl
Maybe it's simpeler to replace all serial communication in esptool.py with calls to a binary that forwards all data to the transparent bridge on the esp8266 (and v.v.). That way I don't have to do the reverse engineering.

Also I now see the awkward typo in the subject, but I can't seem to change it?