ESP8266

Node MCU

Wemos D1 Mini

wemosd1mini

Node MCU V2

nodemcu-pinout

Boot Mode

Monitor port = 74880

boot spi mode from SPI: 7,7
boot spi mode from UART: 5,7

reset causes:
    0:
    1: normal boot
    2: reset pin
    3: software reset
    4: watchdog reset

boot device:
    0:
    1: ram
    3: flash

    The Espressif code can boot in different modes, selected on power-up based on GPIO pin levels. (MTDO is equivalent to GPIO15).
    MTDO 	GPIO0 	GPIO2 	Mode 	Description
    L 	L 	H 	UART 	Download code from UART
    L 	H 	H 	Flash 	Boot from SPI Flash
    H 	x 	x 	SDIO 	Boot from SD-card

    In the bootup message 'boot mode:(x,y)' three low bits of x are {MTDO, GPIO0, GPIO2}.