guild icon
Toit
#jag flash port select
Thread channel in help
hayeskg
hayeskg 10/20/2022 07:55 PM
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.
(edited)
bmentink
bmentink 10/20/2022 11:35 PM
Try jag flash -p portname At any time you can use -h to get help on a function, i.e jag flash -h
bitphlipphar
bitphlipphar 10/21/2022 05:55 AM
You can also use jag port set and if you want to list the available ports jag port -l.
Oliver M
Oliver M 02/07/2023 01:59 PM
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?
bitphlipphar
bitphlipphar 02/07/2023 02:05 PM
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
bitphlippharbitphlipphar
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/establi...
Oliver M
Oliver M 02/07/2023 02:24 PM
Yes; I did jag setup, which worked fine, but jag flash says "no serial ports detected"?! Do I need to install anything else?
Oliver M
Oliver M 02/09/2023 09:59 PM
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.
👍1
Oliver M
Oliver M 02/09/2023 10:00 PM
(And that was on three different computers and multiple different USB sockets)
8 messages in total