arm-dcc 0.1.0

Debug Communication Channel (DCC) API
Documentation
  • Coverage
  • 100%
    7 out of 7 items documented1 out of 5 items with examples
  • Size
  • Source code size: 5.03 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 384.21 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • rust-embedded/arm-dcc
    12 10 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • adamgreig jonathanpallant github:rust-embedded:arm github:rust-embedded:cortex-r

Debug Communication Channel (DCC) API

Example

Device side

use arm_dcc::dprintln;

fn main() {
    dprintln!("Hello, world!");
}

Host side

$ # XSDB = Xilinx System Debugger
$ xsdb

xsdb% # connect
xsdb% conn

xsdb% # select a Cortex-R core
xsdb% targets -set 0

xsdb% # hold the processor in reset state
xsdb% rst -processor

xsdb% # load program
xsdb% dow hello.elf

xsdb% # open a file
xsdb% set f [open dcc.log w]

xsdb% # redirect DCC output to file handle `f`
xsdb% readjtaguart -start -handle $f

xsdb% # start program execution
xsdb% con
$ # on another terminal
$ tail -f dcc.log
Hello, world!

Supported Rust version

  • Rust >=1.59

Optional features

nop

Turns dcc::write into a "no-operation" (not the instruction). This is useful when the DCC is disabled as dcc::write blocks forever in that case.