Trying to get an Adafruit ESP32 v2 to work on a Mac.
using Arduino IDE 2.0, downloaded and installed the correct BSPs and chipset drivers.
Simple sketch now compiles but won't upload.
Below is the error msg.
Needless to say ..... any help / suggestions much appreciated.
Traceback (most recent call last):
File "serial/serialposix.py", line 322, in open
OSError: [Errno 16] Resource busy: '/dev/cu.usbmodem54790241221'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "esptool.py", line 5387, in
File "esptool.py", line 5380, in _main
File "esptool.py", line 4687, in main
File "esptool.py", line 114, in get_default_connected_device
File "esptool.py", line 320, in init
File "serial/init.py", line 90, in serial_for_url
File "serial/serialposix.py", line 325, in open
serial.serialutil.SerialException: [Errno 16] could not open port /dev/cu.usbmodem54790241221: [Errno 16] Resource busy: '/dev/cu.usbmodem54790241221'
[923] Failed to execute script 'esptool' due to unhandled exception!
esptool.py v3.3
Serial port /dev/cu.usbmodem54790241221
Failed uploading: uploading error: exit status 1
do you have a Serial monitor open on that port ? did something crash leaving the port open? are you 100% sure that /dev/cu.usbmodem54790241221 is your ESP32?
what happens if you reboot, plug the ESP32 in, launch the IDE, open the sketch and try to upload?
Sketch uses 235441 bytes (17%) of program storage space. Maximum is 1310720 bytes.
Global variables use 16168 bytes (4%) of dynamic memory, leaving 311512 bytes for local variables. Maximum is 327680 bytes.
Traceback (most recent call last):
File "serial/serialposix.py", line 322, in open
OSError: [Errno 16] Resource busy: '/dev/cu.usbmodem54790241221'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "esptool.py", line 5387, in
File "esptool.py", line 5380, in _main
File "esptool.py", line 4687, in main
File "esptool.py", line 114, in get_default_connected_device
File "esptool.py", line 320, in init
File "serial/init.py", line 90, in serial_for_url
File "serial/serialposix.py", line 325, in open
serial.serialutil.SerialException: [Errno 16] could not open port /dev/cu.usbmodem54790241221: [Errno 16] Resource busy: '/dev/cu.usbmodem54790241221'
[895] Failed to execute script 'esptool' due to unhandled exception!
esptool.py v3.3
Serial port /dev/cu.usbmodem54790241221
Failed uploading: uploading error: exit status 1
Just want to start with a big thank you for taking the time to help J-M-L
Really much appreciated.
so ......
Ok ..... running that bit of code (from the other thread) in terminal and then opening Arduino 1.8 via terminal has got rid of the error "exec: "python3": executable file not found in $PATH"
However ..... after compiling and trying to upload were now back to the same error in both versions of the IDE.
Traceback (most recent call last):
esptool.py v3.3
File "serial/serialposix.py", line 322, in open
Serial port /dev/cu.usbmodem54790241221
OSError: [Errno 16] Resource busy: '/dev/cu.usbmodem54790241221'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "esptool.py", line 5387, in
File "esptool.py", line 5380, in _main
File "esptool.py", line 4687, in main
File "esptool.py", line 114, in get_default_connected_device
File "esptool.py", line 320, in init
File "serial/init.py", line 90, in serial_for_url
File "serial/serialposix.py", line 325, in open
serial.serialutil.SerialException: [Errno 16] could not open port /dev/cu.usbmodem54790241221: [Errno 16] Resource busy: '/dev/cu.usbmodem54790241221'
[1053] Failed to execute script 'esptool' due to unhandled exception!
the selected serial port [1053] Failed to execute script 'esptool' due to unhandled exception!
does not exist or your board is not connected
nothing.
Using serial tools as the monitor and after executing the code in the terminal window, it asks for the password, then there is a 10 second pause and it returns to the cursor.