When uploading code to my esp 2866mod 12F I get problem code exit 2

I got Win 11 on my laptop an tried to upload my code to my esp8266mod 12F and get the error message exit 2. Uploading a sketch from a different computers with win 11 and win 10 does work without any problems, so the Esp8266 works fine.

What I tried:

  • Older version of arduino IDE.
  • Different COM port number.
  • Different COM port speed.
  • Reinstall all software related and windows itself.

Error message:
. Variables and constants in RAM (global, static), used 28432 / 80192 bytes (35%)
║ SEGMENT BYTES DESCRIPTION
╠══ DATA 1508 initialized variables
╠══ RODATA 1068 constants
╚══ BSS 25856 zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 60267 / 65536 bytes (91%)
║ SEGMENT BYTES DESCRIPTION
╠══ ICACHE 32768 reserved space for flash instruction cache
╚══ IRAM 27499 code in IRAM
. Code in flash (default, ICACHE_FLASH_ATTR), used 246516 / 1048576 bytes (23%)
║ SEGMENT BYTES DESCRIPTION
╚══ IROM 246516 code in flash
esptool.py v3.0
Serial port COM6
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: c8:c9:a3:56:9c:b2
Uploading stub...
Failed uploading: uploading error: exit status 2

I do not know much about the ESP8266. Do you get more information if you disable verbose output during compilation and enable *verbose output during upload? Please use code tags (the </> button above the reply window) when posting error messages.

It might help those that are more familiar with the ESP8266.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.