2 releases
0.1.1 | Mar 12, 2024 |
---|---|
0.1.0 | Mar 12, 2024 |
#1464 in Embedded development
15KB
264 lines
Rust JTAGICE mkII implementation
A simple (and incomplete) of the AVR JTAGICE mkII protocol
You can see a working example here
lib.rs
:
JTAGICE mkII rust implementation
This crate implements the JTAGICE mkII protocol.
Usage
Using this library is rather easy:
let port = serialport::new("/dev/ttyUSB0", 19200)
.data_bits(serialport::DataBits::Eight)
.parity(serialport::Parity::None)
.stop_bits(serialport::StopBits::One)
.timeout(Duration::from_secs(8))
.open()
.expect("Failed to open port");
let mut dgr = JtagIceMkii::new(port);
let _ = dgr.sign_on();
dgr.sign_on().expect("Couldn't sign on");
//Set bd rate to 115200
println!(">>> Will set baud rate");
Dependencies
~2.5MB
~45K SLoC