$ py esptool.py --port COM7 --baud 115200 --after no_reset write_flash --flash_size detect --flash_mode dio 0x00000 "C:\ESP8266 web server\nodemcu-release-7-modules-2022-01-27-21-14-42-float.bin"
esptool.py v3.3-dev
Serial port COM7
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC:
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Flash will be erased from 0x00000000 to 0x0006efff...
Compressed 454656 bytes to 295280...
Writing at 0x00000000... (5 %)
Writing at 0x00005399... (10 %)
Writing at 0x000147af... (15 %)
Writing at 0x0001a23a... (21 %)
Writing at 0x0001f4dd... (26 %)
Writing at 0x00024c16... (31 %)
Writing at 0x0002a2fa... (36 %)
Writing at 0x0002f78d... (42 %)
Writing at 0x00035bd3... (47 %)
Writing at 0x0003b426... (52 %)
Writing at 0x00040bcf... (57 %)
Writing at 0x000463af... (63 %)
Writing at 0x0004bf5d... (68 %)
Writing at 0x00051cbb... (73 %)
Writing at 0x0005716c... (78 %)
Writing at 0x0005c05f... (84 %)
Writing at 0x00061143... (89 %)
Writing at 0x0006658f... (94 %)
Writing at 0x0006e000... (100 %)
Wrote 454656 bytes (295280 compressed) at 0x00000000 in 26.7 seconds (effective 136.5 kbit/s)...
Hash of data verified.
Leaving...
Staying in bootloader.
I'll try again. I think I have the correct flash size, though (1MB). I checked in advance, using esptool:
$ py esptool.py --port COM7 flash_id
esptool.py v3.3-dev
Serial port COM7
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC:
Uploading stub...
Running stub...
Stub running...
Manufacturer: 5e
Device: 4014
Detected flash size: 1MB
Hard resetting via RTS pin...