integrated ESP8266 not working ?

Hi everyone, I'm a newbie in the Arduino (& co.) world so I hope you will forgive me if I say som really dumb stuff.

I've recently bought a compatible board called wemos Mega + wif esp8266 (https://it.banggood.com/LILYGO-Mega-WiFi-R3-Module-ATmega2560ESP8266-32Mb-Memory-USB-TTL-CH340G-Compatible-p-1205437.html?akmClientCountry=CH&&cur_warehouse=UK) that seemed nice, it packed, on a single board, an ATMega2560 and an ESP8266 module for wi-fi, already connected together via serial communication.

I've tested the ATmega2560 with some example code ad everything seems to work on this side.

Then I've changed the DIP switch in order to program (as stand-alone, just to test it) the ESP8266, added the esp8266 board to the Arduino IDE, used the "generic esp8266" as board and tried to upload some simple example code but I can't get even the led blinking (nor the Serial communication to work).
When I upload the sketch I see no errors in the terminal (only a message that tells the percentage of data written). What am I doing wrong?

I saw some websites that tell to flesh a version of "nodeMCU" on the ESP8266 but I don't even know what that means, isn't the Arduino IDE already flashing the program that I'm writing on the ESP8266?
Thank you and sorry for being so bad at this.

The esptool auto-reset feature by default sets io 0 LOW over the RST line and then makes a reset over the DTR line to put the esp8266 into flashing mode. After the upload the esptool resets the board over the DTR line.

On this board Mega+WiFi, only the DTR line is wired like for AVR MCU. For flashing the io 0 pin is put LOW with the pin 7 of the DIP switch manually. So the reset after upload sets the esp8266 back to flashing mode.

The esp8266 arduino package changed from version 2.5.0 the upload tool to the python version of the esptool which makes this reset after upload. This reset can be turned off by changing the command line of the esptool in platform.txt (--after no_reset in tools.esptool.upload.pattern before write_flash)

Ok, I understood what I should do operatively

The esp8266 arduino package changed from version 2.5.0 the upload tool to the python version of the esptool which makes this reset after upload. This reset can be turned off by changing the command line of the esptool in platform.txt (--after no_reset in tools.esptool.upload.pattern before write_flash)

But all the previous part (in which you explain why this is happening) is still not clear. You gave a fantastic explanation but unfortunately, I fail to grasp the meaning of what you said, sorry, again, it's a whole new world for me :frowning: