jag flash port select
# help
k
Super basic. Bacially
jag flash
grabbed hold of the wrong
port
on my Mac. What's the best way to (re)select the correct serial port? Thanks, keen to convert some ESP32 applications to Toit - the time saving with hot-reloading is compelling as is the expanding library of supported devices.
b
Try
jag flash -p portname
At any time you can use
-h
to get help on a function, i.e
jag flash -h
k
You can also use
jag port set
and if you want to list the available ports
jag port -l
.
o
On my (fairly recent) Ubuntu I get no ports displayed with that, even if an ESP32 (TTGO T-BEAM) is plugged into USB... I also note I have no
/dev/ttyUSB
, only
/dev/usb/hiddev0
?
k
Interesting, @Oliver M! Do you dialout/uucp permissions? It is all rather complicated 🙂 https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/establish-serial-connection.html
o
Yes; I did
jag setup
, which worked fine, but
jag flash
says "no serial ports detected"?! Do I need to install anything else?
It turned out to be the cable. Apparently most of my USB cables seem not to work properly with the port; I just tried another one today, and suddenly it was recognised.
(And that was on three different computers and multiple different USB sockets)
3 Views