arduino-cli redux
I added myself to the dialout group in case I needed rw on the port because...
ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Feb 24 15:18 /dev/ttyUSB0
Switched to my new groups so it would take effect with T383838su - user.
NixOS has T383838arduino-cli in the repo, so
nix-shell -p arduino-cli
Listing connected boards:
arduino-cli board list
Port Protocol Type Board Name FQBN Core
/dev/ttyS0 serial Serial Port Unknown # I don't know what this is, will check out later
/dev/ttyUSB0 serial Serial Port (USB) Unknown # it's this one
Need support for the board in use (ESP32 devkit v1 for the ESP32 WROOM). Used the Arduino gui for this (also in NixOS) because I'm just not familiar with the process.
Boards ESP32 (essprif something?) ESP32 Dev Module
The T383838-b option needs the value T383838esp32:esp32:esp32 and then the baud rate, which is oddly T383838UploadSpeed instead of T383838baud.
In this case T383838GetChipID is a directory containing T383838GetChipID.ino from the library of examples.
I could have grabbed this from the filesystem at ...
~/.arduino15/packages/esp32/hardware/esp32/2.0.11/libraries/ESP32/examples/ChipID/GetChipID/GetChipID.ino
For example:
arduino-cli compile -b esp32:esp32:esp32 GetChipID
arduino-cli upload -p /dev/ttyUSB0 -b esp32:esp32:esp32:UploadSpeed=115200 GetChipID
arduino-cli monitor -p /dev/ttyUSB0 -b esp32:esp32:esp32:UploadSpeed=115200
Viewing the serial connection was weird with the above, so use minicom and reset it and just view it through minicom.
minicom -D /dev/ttyUSB0
Ctrl+A Z
P
E
Esc
Tags: cli, raw
Tags
Navigation