Your shopping cart is empty!
A fatal esptool.py error occurred: Cannot configure port!
- Khairul_Tajudin
- 29 Jan 2024
- Tutorial
- 1088
This tutorial is short summarizes on common issues with ESP8266 or ESP32 arduino base boards. It usually happens while tinkering with Arduino IDE and ESP chips.Â
Â
Â
A fatal esptool.py error occurred: Cannot configure port. PermissionError(13, 'A device attached to the system is not functioning.', None, 31)
Â
Common Problem:
I am using a windows OS and I tried running a .ino code in arduino IDE for ESP8266 and came across the following error while trying to upload the code to ESP8266.
Â
" 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) "
Â
1. We might have encountered a similar issue and was able to resolve it by installing the CH340_driver. The CH340 driver provides essential support for devices utilizing the CH340 chipset, ensuring proper communication with your computer.
Â
Â
2. If you already have a ch340 driver in your computer but still have an issue, you can uninstall existing ch340 driver first and freshly install the driver then you are good to go!
Â
Â
3. In certain situations, to solve this issue we need to uninstall CH340 driver ( CH341SER.ZIP) and install the old version driver (Windows-CH340-Driver.ZIP 2016/11/30) and it will solve this issue.
This issue usually happen on Window 11 and by installed again the ch34xx driver it will worked
Â
Â
4. You may see this message on Arduino IDE monitor once it can upload to the board
Â
Â
5. Example of board that might have this issue
Â
Wemos D1 Mini ESP8266 Dev Board
NodeMCU Lua V3 ESP8266 WIFI with CH340C
Â
Â
Â
Â