Hi
I have the problem that my lolin d32 (esp32 based) is not detected from the devices.
When uploading I see the following error message:
Uploading .pioenvs/lolin_d32/firmware.bin
esptool.py v2.6
Traceback (most recent call last):
File “/Users/wkeller/.platformio/packages/tool-esptoolpy/esptool.py”, line 2959, in
Serial port /dev/cu.usbserial-1410
_main()
File “/Users/wkeller/.platformio/packages/tool-esptoolpy/esptool.py”, line 2952, in _main
main()
File “/Users/wkeller/.platformio/packages/tool-esptoolpy/esptool.py”, line 2652, in main
esp = chip_class(each_port, initial_baud, args.trace)
File “/Users/wkeller/.platformio/packages/tool-esptoolpy/esptool.py”, line 222, in init
self._port = serial.serial_for_url(port)
File “/Users/wkeller/.platformio/penv/lib/python2.7/site-packages/serial/init.py”, line 88, in serial_for_url
instance.open()
File “/Users/wkeller/.platformio/penv/lib/python2.7/site-packages/serial/serialposix.py”, line 268, in open
raise SerialException(msg.errno, “could not open port {}: {}”.format(self._port, msg))
serial.serialutil.SerialException: [Errno 16] could not open port /dev/cu.usbserial-1410: [Errno 16] Resource busy: ‘/dev/cu.usbserial-1410’
*** [upload] Error 1
As a workaround I have to specify the usb port inside platformio.ini:
upload_port = /dev/cu.wchusbserial1410
For monitoring I see this message:
Available ports:
1: /dev/cu.Bluetooth-Incoming-Port ‘n/a’
2: /dev/cu.usbserial-1410 u’USB2.0-Serial’
3: /dev/cu.wchusbserial1410 u’USB2.0-Serial’
Enter port index or full name:
and I have to select 3.
As workaround I have to specify:
monitor_port = /dev/cu.wchusbserial1410
Nevertheless some time ago this worked like a charm on osx.
For windows I do not see this problem.
The issue starts to be nasty when I have to use the same project on windows and osx, which means comment and uncomment the workarounds every time.
some more info:
pio device list
/dev/cu.Bluetooth-Incoming-Port
Hardware ID: n/a
Description: n/a
/dev/cu.wchusbserial1410
Hardware ID: USB VID:PID=1A86:7523 LOCATION=20-1
Description: USB2.0-Serial
/dev/cu.usbserial-1410
Hardware ID: USB VID:PID=1A86:7523 LOCATION=20-1
Description: USB2.0-Serial
pio update -c
Checking tool-scons @ 2.20501.7 [Up-to-date]
Checking tool-unity @ 1.20403.0 [Up-to-date]
Checking contrib-pysite @ 2.27.190418 [Up-to-date]
Checking contrib-piohome @ 2.2.0 [Up-to-date]
Checking tool-pioplus @ 2.5.2 [Up-to-date]Platform Manager
Platform Espressif 32
Checking espressif32 @ 1.9.0 [Up-to-date]
Checking tool-esptoolpy @ 1.20600.0 [Up-to-date]
Checking toolchain-xtensa32 @ 2.50200.80 [Up-to-date]
Checking framework-arduinoespressif32 @ 2.10002.190628 [Up-to-date]
Checking tool-mkspiffs @ 2.230.0 [Up-to-date]Platform Espressif 8266
Checking espressif8266 @ 2.2.2 [Up-to-date]
Checking tool-esptoolpy @ 1.20600.0 [Up-to-date]
Checking tool-mkspiffs @ 1.200.0 [Up-to-date]
Checking tool-esptool @ 1.413.0 [Up-to-date]
Checking framework-arduinoespressif8266 @ 2.20502.0 [Up-to-date]
Checking toolchain-xtensa @ 2.40802.190218 [Up-to-date]Library Manager