💾 Archived View for thatit.be › 2024-02-24-15-18-47.gmi captured on 2024-05-12 at 15:20:15. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-05-10)

➡️ Next capture (2024-05-26)

-=-=-=-=-=-=-

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 su - user.

NixOS has arduino-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 -b option needs the value esp32:esp32:esp32 and then the baud rate, which is oddly UploadSpeed instead of baud.

In this case GetChipID is a directory containing GetChipID.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

Navigation

index

tags

updated: 2024-02-24 17:40:40

generated: 2024-05-03