How do the 2 microcontrollers (Arduino + ESP2866 version 13) get programmed together via 1 USB connection to the Arduino IDE ?.
You need to show how the two are connected. If the ESP2866 is in a shield attached to the Arduino, you do not get the opportunity to program it.