-->
Page 1 of 1

Flashing question

PostPosted: Sat May 22, 2021 3:21 pm
by keith_trayler
Does code exist to flash an 8266 device (specifically a ESP-WROOM-02) that runs on Arduino Mega? I'm not talking about using any IDE. I want my project to access the web and download a BIN file. Then using its interface with the WiFi module (UART, plus the control lines), I want the Mega to update the WiFi module directly, and then reboot it.

If the code does not already exist, where can I find documentation on exactly what the flashing programs are doing, so I can write the code myself?

Thanks in advance ...
Keith

Re: Flashing question

PostPosted: Tue May 25, 2021 2:12 am
by schufti
why use an atmega where you don't have sufficient memory?
Use an ESP32 or ESP8266 module providing enough spiffs or littlefs for this task.
I don't know of any ready made source but most (if not all) esp flashers are open source and the protocol is documented here: https://github.com/espressif/esptool/wi ... l-Protocol