2

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>
    _main()
  File "/Users/apple/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2952, in _main
    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
    instance.open()
  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?

anonymous2
  • 4,872
  • 3
  • 20
  • 48
Michael Le
  • 29
  • 3

1 Answers1

4

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

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

hardillb
  • 12,553
  • 1
  • 20
  • 34
  • 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 07:12
  • 1
    @TrungLM what about ls /dev/tty* – multithr3at3d May 05 '19 at 14:22