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

sidtupper
Posts: 3
Joined: Fri Nov 25, 2022 7:23 pm

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

Postby sidtupper » Wed Jan 18, 2023 2:23 am

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.

sidtupper
Posts: 3
Joined: Fri Nov 25, 2022 7:23 pm

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

Postby sidtupper » Thu Jan 19, 2023 1:25 am

I installed esptools on a linux machine and erased the ESP32 flash, no problem. I wonder what why it didn't work under windows.

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

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

Postby chegewara » Thu Jan 19, 2023 10:26 am

You probably got opened debug window in arduino ide or other terminal which were using that port.

Who is online

Users browsing this forum: No registered users and 56 guests