#debugging #api-bindings #mkii #jtagice #avrice-mkii #avrice

jtagice_mkii

A simple client for AVRice MKII JTAG debuggers

2 releases

0.1.1 Mar 12, 2024
0.1.0 Mar 12, 2024

#1519 in Embedded development

MIT/Apache

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