-1

So, I downloaded tools for my ESP8266 using this link: http://arduino.esp8266.com/stable/package_esp8266com_index.json

I installed the last version in my motherboard manager (2.3.0) and tried to execute my first example ("Blink"), but here is what I get :

enter image description here

What can I do to prevent this?

P.S My ESP8266 is connected to an Arduino Mega

0

The reason why this error comes up is because the programmer cannot communicate with the bootloader of the ESP. The link you mentioned in the comments misses a very important step, which is to remove the ATmega chip already on the Uno board. Otherwise the programmer will see corrupt data due to 2 bootloaders on the same UART lines. Remember that only one device can communicate on the UART lines. The Mega board has the ATmega chip soldered to the board, so you don't have much hopes of isolating the UART lines. Another thing to remember is to always reset the ESP into flash mode (reset the ESP with GPIO_0 pulled low).

If you still want to use the ESP with the Mega board, go through the Multi Serial examples given in the IDE. The concept requires making two GPIO lines communicate with the ESP, while the original Serial lines to the programmer (the computer). All data sent via ESP is routed to Mega's serial lines and vice versa.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.