I have a question about connection from board ESP to USB Port. I can not connect to this port although I setup driver. I use ESP-WROVER-KI. Run on MacOS 10.14

Serial port /dev/ttyUSB0

Traceback (most recent call last):
  File "/Users/apple/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2959, in <module>
  File "/Users/apple/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2952, in _main
  File "/Users/apple/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2652, in main
    esp = chip_class(each_port, initial_baud, args.trace)
  File "/Users/apple/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 222, in __init__
    self._port = serial.serial_for_url(port)
  File "/Users/apple/Library/Python/2.7/lib/python/site-packages/serial/__init__.py", line 88, in serial_for_url
  File "/Users/apple/Library/Python/2.7/lib/python/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 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
make: *** [flash] Error 1

Could anyone with experience connecting to USB port tell me the reason why?

  • what does the error message tell you? – jsotola Apr 19 '19 at 18:17
  • @jsotola could not open port /dev/ttyUSB0. Because I can't establish serial connection with ESP32. – Michael Le Apr 20 '19 at 5:03
  • Although I try to install driver FTDI, it is not work. – Michael Le Apr 20 '19 at 5:04
  • 2
    The important part seems to be [Errno 2] No such file or directory: '/dev/ttyUSB0' – hardillb Apr 20 '19 at 5:29
  • @hardillb think it happened because I can not establish connection between EST to USB port – Michael Le Apr 20 '19 at 6:49

/dev/ttyUSB0 is how Linux refers to USB Serial ports.

MacOS uses /dev/tty.usbserial with the FTDI driver

  • When I list all device connect to my laptop. I dont see any tty.usbserial. In bellow introduction, They said that list by "ls /dev/cu.*" But I dont see any usb serial when I do that. This driver is false ? – Michael Le Apr 21 '19 at 7:12
  • 1
    @TrungLM what about ls /dev/tty* – multithr3at3d May 5 '19 at 14:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.