So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By keith_trayler
#91451 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
User avatar
By schufti
#91469 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