earlephilhower / arduino-littlefs-upload

Build and uploads LittleFS filesystems for the Arduino-Pico RP2040, ESP8266, and ESP32 cores under Arduino IDE 2.2.1 or higher
MIT License
96 stars 9 forks source link

Port is busy during file system upload #9

Closed abaymar closed 7 months ago

abaymar commented 7 months ago

I cannot upload files as Arduino IDE complains that the port is busy and gives a fatal error:

A fatal esptool.py error occurred: [Errno 16] could not open port /dev/cu.usbserial-0001: [Errno 16] Resource busy: '/dev/cu.usbserial-0001'

The only solution I found is this:

MacBook Air M1 Arduino 2.2.1 ESP8266 NodeMCU 1.0

earlephilhower commented 7 months ago

Close the Serial Monitor and try again. There is no way for a plug in to do that for you per the Arduino folks.

abaymar commented 7 months ago

Indeed closing the Serial Monitor helps!