-
Notifications
You must be signed in to change notification settings - Fork 9
EspProxy
The EspProxy sketch from UnoWiFiDevEdSerial1 library tools replaces the EspRecovery sketch from UnoWiFiDevEd library and WiFi Link library.
On UNO WiFi you can't disconnect the ESP from ATMega and connect it to USB adapter for flashing like you do it with a module. There is an hardware option on the board, but it requires precise soldering.
The solution is a software bridge, a sketch in ATmega which copies bytes from USB to ESP and back.
EspProxy with Serial1 can bridge flashing tools to ESP8266 at default 115200 baud. Only the helper stub is written very fast from tools memory and Serial overflows occur. The workaround in EspProxy is doubling the speed at Serial1 side for the flashing mode.
Flashing tools send DTR signal to USB chip to trigger the reset of the processor to bootloader. This is bridged in EspProxy to ESP. The signal causes the reset of the ATmega and the EspProxy sketch. And EspProxy calls a reset or a reset to bootloader of ESP. This way the ESP is in bootloader mode if the tool or IDE requires it.
EspProxy also detects the end of flashing of the ESP8266, to power-cycle the ESP, to avoid GPIO_STRAPPING register ESP bug.