This is a work-in-progress port to Rust for Tock Loader.
Please use the original Python version of TockLoader.
If you want to add support for a new board, you have 3 options:
- Implement support for the bootloader for your board. For this, please see the
tock-bootloader repo for more details.
Note: this approach will limit you to use the bootloader for all operations (using the
--serial
flag). - Add support for your board in probe-rs. This should be a straight-forward process if a CMSIS packs is available for your board.
- Implement a custom debug probe for your board. This is the most complex option, but it will give
you the most flexibility:
- First, add your debug probe to the
Connect
enum intockloader-lib/src/connection.rs
. - Then, implement each command individually. There is no predefined interface for this, as debug probes can be very different from each other. You can take a look at the existing implementations for inspiration, and feel free to contact us if you need help.
- First, add your debug probe to the
sudo apt update
sudo apt install libudev-dev
sudo apt update
sudo apt install libudev-dev pkg-config
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.