Giter VIP home page Giter VIP logo

rusty-probe-firmware's Introduction

Rusty Probe

This firmware implements an CMSIS-DAP v1 and v2 compatible probe.

Building

You can build the project and generate a .uf2 file as follows:

# Install elf2uf2-rs
cargo install elf2uf2-rs

# Build the ELF without logging
DEFMT_LOG=off cargo build --release --bin app

# Generate .uf2 file
elf2uf2-rs target/thumbv6m-none-eabi/release/app app

Start the Pico in bootloader mode and drop the app.uf2 file to it, done!

Running with defmt logs without debugger

If you don't have a debugger/programmer to program or debug your rusty-probe with, you can still run the probe and see the defmt logs it prints.

To do so, start the probe in the USB bootloader by powering it on while holding the button pressed. Mount the resulting block device.

Then, perform the following steps:

# Install elf2uf2-rs and defmt-print (you only need to do this once)
cargo install elf2uf2-rs defmt-print

# Build the binary with the desired level of logging, and run
# it using `xtask`
XTASK_SERIAL=/dev/ttyACM0 DEFMT_LOG=debug cargo rrb-usb app

You can now repeat the above command, which will automatically restart and flash your Rusty Probe. Note that this does require that the block device is mounted each time.

You may have to change XTASK_SERIAL, and on non-x86 linux platforms, you must update the runner configuration with the correct target (see .cargo/config.toml).

TODO

  • Move SWD impl to PIO
  • Add support for SWO (Manchester encoding or UART via PIO)
  • Add support for VCP (it enumerates now, but ignores all data)
  • Add the automatic polling of RTT buffers
  • Document the dap-rs traits and helpers
  • Document the firmware

rusty-probe-firmware's People

Contributors

korken89 avatar datdenkikniet avatar yatekii avatar dirbaio avatar jannic avatar jonathanpallant avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.