Page 1 of 1

can't erase-flash with esptool because serial port busy

Posted: Wed Jan 18, 2023 2:23 am
by sidtupper
I flashed an esp32 with micropython then found I needed to code in C++. I figured that micropython was taking up space uselessly and when I tried to remove it with esptool erase_flash I got "Device is busy" from the Windows Thonny IDE. It won't let me use the COM port to stop it the running sketch. Admin level esptool, rebooting windows, rebooting the ESP, get the same result. What can I do to get past this? Thanks.

Re: can't erase-flash with esptool because serial port busy

Posted: Thu Jan 19, 2023 1:25 am
by sidtupper
I installed esptools on a linux machine and erased the ESP32 flash, no problem. I wonder what why it didn't work under windows.

Re: can't erase-flash with esptool because serial port busy

Posted: Thu Jan 19, 2023 10:26 am
by chegewara
You probably got opened debug window in arduino ide or other terminal which were using that port.