Conversation
7785593 to
2e64820
Compare
|
Hmm I got a bit confused by the PIO code - the firmware is still GPIO-bitbanging, right? In that case it might be worth to rebuild this with https://github.com/bugadani/bitbang-dap, there's no need to maintain separate bitbanging implementations. That crate would take care of SWD/JTAG, the firmware needs to provide USB, the pin/delay implementation, tracing and VCP. I imagine the pins are a bit tricky - actual bidirectional pins would need an Option with the direction selector, but otherwise it should not be a hard rework. There is a bit of a chicken-egg problem with dap-rs releases currently, though :) |
|
Indeed, it's a bitbang driver :) I got the PIO implementation to work, but did not have time/energy to finalize it. On using the library, I think it either be fine - if one adds interfaces for moving between input and output it should have all that's necessary. |
|
Could do, I just drafted it up separately as I wasn't sure if it would be a great fit for dap-rs. I'd have moved it into the probe-rs org eventually, but it might be better to just have one crate. |
|
I feel like it's fine if |
|
I had to draft up an alternative firmware because apparently this one fails to enumerate on Windows. Not sure if you're open to radical rewrites, but if you'd like to see how the basics look with embassy, the repo is here |
2e64820 to
d59a89a
Compare
d59a89a to
4a2a3db
Compare
Adding JTAG support from
dap-rs.