I’m using VSCode on Linux Mint to upload some firmware to a Wemos d1 mini. I’m to a point where I’m directing to the right serial port but when I’m attempting the upload I get the following message:
Looking for upload port...
Using manually specified: /dev/bus/usb/001/007
Uploading .pio/build/lolin_d1_mini/firmware.bin
Traceback (most recent call last):
esptool.py v3.0
File "/home/joshindigo/.platformio/penv/lib/python3.10/site-packages/serial/serialposix.py", line 398, in _reconfigure_port
Serial port /dev/bus/usb/001/007
orig_attr = termios.tcgetattr(self.fd)
termios.error: (25, 'Inappropriate ioctl for device')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/joshindigo/.platformio/packages/tool-esptoolpy@1.30000.201119/esptool.py", line 3969, in <module>
_main()
File "/home/joshindigo/.platformio/packages/tool-esptoolpy@1.30000.201119/esptool.py", line 3962, in _main
main()
File "/home/joshindigo/.platformio/packages/tool-esptoolpy@1.30000.201119/esptool.py", line 3551, in main
esp = chip_class(each_port, initial_baud, args.trace)
File "/home/joshindigo/.platformio/packages/tool-esptoolpy@1.30000.201119/esptool.py", line 271, in __init__
self._port = serial.serial_for_url(port)
File "/home/joshindigo/.platformio/penv/lib/python3.10/site-packages/serial/__init__.py", line 90, in serial_for_url
instance.open()
File "/home/joshindigo/.platformio/penv/lib/python3.10/site-packages/serial/serialposix.py", line 332, in open
self._reconfigure_port(force_update=True)
File "/home/joshindigo/.platformio/penv/lib/python3.10/site-packages/serial/serialposix.py", line 401, in _reconfigure_port
raise SerialException("Could not configure port: {}".format(msg))
serial.serialutil.SerialException: Could not configure port: (25, 'Inappropriate ioctl for device')
*** [upload] Error 1