[upload] Error 2 with esp8266 ESP-07 board #193

You’ve configured it as a board with 4MB of FLASH, but the bootloader as auto-detected it as

You could correct that by changing the flash size configuration script used via your project configuration platformio.ini… i.e.

build_flags = -Wl,-Teagle.flash.1m.ld