Closed egueli closed 4 years ago
Please provide an output from pio device list
$ pio device list
/dev/cu.Bluetooth-Incoming-Port
-------------------------------
Hardware ID: n/a
Description: n/a
/dev/cu.SamsungM7-COM0
----------------------
Hardware ID: n/a
Description: n/a
/dev/cu.wchusbserial14230
-------------------------
Hardware ID: USB VID:PID=1A86:7523 LOCATION=20-2.3
Description: USB2.0-Serial
/dev/cu.usbserial-14230
-----------------------
Hardware ID: USB VID:PID=1A86:7523 LOCATION=20-2.3
Description: USB2.0-Serial
Oh... my bad. I was using tty
instead of cu
.
Expected:
upload_port
to a path with wildcards, e.g./dev/tty.wchusbserial*
pio run -t upload
Actual:
Contents of platformio.ini
On Mac I find it particularly important to set the port via wildcards, because the auto-detection doesn't seem to work correctly: it picks a
/dev/cu.usbserial-*
port, that always fails withResource busy
. The workaround is to specify the exact port path, but every time the port changes (e.g. after replugging the device) it has to be changed too, needing a full build.