`jag flash` failed: termios.error: (22, 'Invalid a...
# help
t
I was following tutorial on https://docs.toit.io/getstarted/device I found this error when I ran
Copy code
āž¤ jag flash
Enter WiFi network (SSID): Type Mesh Wifi
Enter WiFi password for 'Type Mesh Wifi': 
Flashing device over serial on port '/dev/cu.usbserial-0001' ...
esptool.py v4.6
Serial port /dev/cu.usbserial-0001
Connecting......
Chip is ESP32-D0WDQ6 (revision v1.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c8:f0:9e:9c:a7:e8
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Traceback (most recent call last):
  File "esptool.py", line 37, in <module>
  File "esptool/__init__.py", line 1064, in _main
  File "esptool/__init__.py", line 723, in main
  File "esptool/targets/esp32.py", line 390, in change_baud
  File "esptool/loader.py", line 131, in inner
  File "esptool/loader.py", line 1086, in change_baud
  File "esptool/loader.py", line 328, in _set_port_baudrate
  File "serial/serialutil.py", line 299, in baudrate
  File "serial/serialposix.py", line 517, in _reconfigure_port
termios.error: (22, 'Invalid argument')
[3234] Failed to execute script 'esptool' due to unhandled exception!
Error: exit status 1
OS: MacOS 13.3.1 (M1)
Copy code
āž¤ jag version
Version:     v1.10.3
SDK version:     v2.0.0-alpha.95
Build date:     2023-08-18T12:06:51Z
k
Looks like it might be related to how you're attached to the device: https://forum.arduino.cc/t/esptool-does-not-like-my-macbook-pro-16-inch-2019/951881/5.
How do you connect cabling-wise?
t
I connect a cable through a hub. ESP32 --(MicroUSB - USB_A cable)--> HUB --(USB_C cable)--> Macbook I try a different hub. It works! šŸ™ šŸ™ šŸ™ Thank You šŸ™ šŸ™ šŸ™