A cargo runner for Arduino boards
- Based on
arduino-cli
- Supports all Arduino boards
- Possibility to open serial monitor after flashing
- Install
arduino-cli
- Install
cargo-binutils
:cargo install cargo-binutils rustup component add llvm-tools
- Install
arduino-run
:cargo install arduino-run
Add the following in your .cargo/config.toml
:
[target.'<target-triple>']
runner = "arduino-run -b <board> -p <port>"
Usage: arduino-run [OPTIONS] --board <BOARD> --port <PORT> <ELF>
Arguments:
<ELF> The ELF firmware file
Options:
-b, --board <BOARD> The Fully Qualified Board Name (FQBN)
-p, --port <PORT> The serial port [env: ARDUINO_RUN_PORT]
-m, --monitor Open serial monitor after flashing
-r, --baudrate <BAUDRATE> The serial monitor baudrate [default: 9600]
-h, --help Print help
-V, --version Print version
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Copyright © 2024, Matteo Carnelos