probe-rs / dap-rs

Apache License 2.0
13 stars 2 forks source link

Curious about the state of the project #1

Open eivindbergem opened 2 years ago

eivindbergem commented 2 years ago

I've been looking for a generic CMSI-DAP library and came across this. Since there is no readme, I just wanted to hear about the state of the project. I primarily want to be able to easily turn any dev boards I have lying around – such as bluepill and RPI pico – into debug probes, but also build something custom – I'd really like to have a debugger with ethernet or wifi for remote debugging. There are lots of DAP implementations around, but it would be nice to have a single high quality library written in Rust that can easily be adapted for any board.

I'd be happy to contribute too if you need any help.

korken89 commented 2 years ago

Hi, thanks for showing interest!

This project is breaking out all the CMSIS-DAP functionality and relevant USB descriptors of https://github.com/probe-rs/hs-probe-firmware and I have tested it on an Raspberry Pi Pico, you can find its firmware here: https://github.com/korken89/pico-probe/

Currently I'm porting that firmware to the https://github.com/probe-rs/rusty-probe and the WIP firmware here: https://github.com/korken89/pico-probe/tree/rusty-probe

I'm giving this time whenever I have time over. :) Where it stands now is that there is no JTAG impl, that is the only missing thing AFAIK, so if you feel like poking there I'd welcome it! Documentation is also very welcome! I've just not put the time there yet. Though without the knowledge of how it all fits together it might be difficult?

eivindbergem commented 2 years ago

I might just start with trying to write a firmware for the bluepill based on the pico-probe, as a way to get familiar with the code. I'm not really familiar with JTAG, but I can help with documentation and with any bugs(!) that might show up once I start poking around.