-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

3
  • And how exactly is it connected, and what are you running on the mega?
    – Majenko
    Jun 24, 2017 at 20:24
  • @Majenko I used the scheme from that article : teomaragakis.com/hardware/electronics/…
    – Philippe
    Jun 24, 2017 at 21:14
  • @Majenko Nothing except the ESP is connected to my Arduino
    – Philippe
    Jun 24, 2017 at 21:15

1 Answer 1

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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