This folder contains the utility to interact with the flasher.
To run the flashing tool:
- Use
cargo run
to run the tool. - Use
cargo build --release
to build the release version.
The utility should automatically detect the connected port; otherwise, you can specify it manually with the --port
flag.
cargo run -- help
Linux:
ls /dev/ttyUSB*
MacOS:
ls /dev/tty.* /dev/cu.*
To connect to the device, run:
cargo run -- --port /port/address connect
To flash a new binary to the device:
cargo run -- write --input /path/to/your/binary.bin
Or, if you need to specify the port manually:
cargo run -- write --port /port/address --input /path/to/your/binary.bin
You can either:
- Build the binary using the code from the kampela-firmware repository.
- Download the compiled binary from the releases section.