. Variables and constants in RAM (global, static), used 28268 / 80192 bytes (35%)
║ SEGMENT BYTES DESCRIPTION
╠══ DATA 1524 initialized variables
╠══ RODATA 1032 constants
╚══ BSS 25712 zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 59747 / 65536 bytes (91%)
║ SEGMENT BYTES DESCRIPTION
╠══ ICACHE 32768 reserved space for flash instruction cache
╚══ IRAM 26979 code in IRAM
. Code in flash (default, ICACHE_FLASH_ATTR), used 237744 / 1048576 bytes (22%)
║ SEGMENT BYTES DESCRIPTION
╚══ IROM 237744 code in flash
esptool.py v3.0
Serial port COM4
A fatal esptool.py error occurred: Cannot configure port, something went wrong. Original message: PermissionError(13, 'A device attached to the system is not functioning.', None, 31)
There are some boards on the market that have a USB chip with the same IC package as the WCH CH340, and which are identified by the computer as a CH340. However, these chips don't have the "WCH CH340C ..." labeling like you see on the chip in the picture above:
If it isn't clear, alternatively you can provide the link to where you bought the board from and we'll see if we can determine the chip from the product listing.