# Mega +WiFi R3 ATmega2560+ESP8266

**URL:** <https://forum.arduino.cc/t/mega-wifi-r3-atmega2560-esp8266/636108>\
**Category:** IDE 1.x\
**Created:** [February 11, 2020, 11:22am UTC](https://forum.arduino.cc/t/mega-wifi-r3-atmega2560-esp8266/636108 "2020-02-11T11:22:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![reva23](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@reva23](https://forum.arduino.cc/u/reva23)\
**Post date:** [February 11, 2020, 11:22am UTC](https://forum.arduino.cc/t/mega-wifi-r3-atmega2560-esp8266/636108/1 "2020-02-11T11:22:21Z")

</div>

I have mega + wifi board of this type. Im trying to upload sketch to ESP8266 by making DIP switches 5,6,7 ON and remaining OFF.

when I try to upload the code, arduino throws this error(Capture.PNG)

Pls help me out to solve this issue. I selected generic ESP8266 board as per the instruction given in this link:

> **[MEGA WiFi Dev Board (Mega2560 + ESP8266 + CH340G + MicroUSB)](https://www.arduitronics.com/product/2265/mega-wifi-dev-board-mega2560-esp8266-ch340g-microusb)**
>
> Overview: It is a customized version of the classic ARDUINO MEGA R3 board. Full integration of Atmel ATmega2560 microcontroller and ESP8266 Wi-Fi IC, ...

 ![Mega-WiFi-R3-Atmega2560NodeMCU-ESP8266-32Mb-Memory-USB-TTL-CH340G-Compatible-For-Arduino-Mega-5.jpg](https://europe1.discourse-cdn.com/arduino/original/4X/9/9/f/99f0875569cfaf19f01ee0209adfcd378e29059f.jpeg)

 ![Capture.PNG](https://europe1.discourse-cdn.com/arduino/original/4X/5/a/1/5a186cc81591d24876353d1d7fbf5c25c65db4bc.png)

---

<div class="post-metadata">

**Author:** ![Juraj](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/juraj/32/238785_2.png) [@Juraj](https://forum.arduino.cc/u/Juraj)\
**Post date:** [February 11, 2020, 2:13pm UTC](https://forum.arduino.cc/t/mega-wifi-r3-atmega2560-esp8266/636108/2 "2020-02-11T14:13:06Z")

</div>

this is a compilation error, not an upload error.  
you didn't install the esp8266 arduino boards package correctly. use the Boards Manager in IDE to install it

> **[GitHub - esp8266/Arduino: ESP8266 core for Arduino](https://github.com/esp8266/Arduino#installing-with-boards-manager)**
>
> ESP8266 core for Arduino. Contribute to esp8266/Arduino development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 5, 2021, 4:24pm UTC](https://forum.arduino.cc/t/mega-wifi-r3-atmega2560-esp8266/636108/3 "2021-05-05T16:24:48Z")

</div>

Closed on May 5, 2021, 4:24pm UTC


