DEV Community

Indra Wahyu
Indra Wahyu

Posted on

A fatal esptool.py error occurred: Cannot configure port, something went wrong. Original message: PermissionError(13, 'A dev...

I have this error when upload code in Arduino IDE to ESP8266

. Variables and constants in RAM (global, static), used 28104 / 80192 bytes (35%)
║   SEGMENT  BYTES    DESCRIPTION
╠══ DATA     1496     initialized variables
╠══ RODATA   920      constants       
╚══ BSS      25688    zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 59667 / 65536 bytes (91%)
║   SEGMENT  BYTES    DESCRIPTION
╠══ ICACHE   32768    reserved space for flash instruction cache
╚══ IRAM     26899    code in IRAM    
. Code in flash (default, ICACHE_FLASH_ATTR), used 232148 / 1048576 bytes (22%)
║   SEGMENT  BYTES    DESCRIPTION
╚══ IROM     232148   code in flash   
esptool.py v3.0
Serial port COM8

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)
Enter fullscreen mode Exit fullscreen mode

I solved with install CH340 Driver.

  1. Download CH340 driver from sparkfun.com
  2. Install driver, I use CH340SER.EXE file (just next and next and finish)

reference

sparkfun.com

Top comments (2)

Collapse
 
anikakash_081be89f41213f6 profile image
anikakash

Image description
i have installed ch340 but still face the problem.

Collapse
 
abis_omer profile image
Muhammad Abis Omer

Thanks it is very helpful for me