Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] debug probe comparison #258

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

noahp
Copy link
Contributor

@noahp noahp commented Mar 21, 2022

Somewhat pocket-sized article comparing a few of the more common debug
probes for Cortex-M targets.

Somewhat pocket-sized article comparing a few of the more common debug
probes for Cortex-M targets.
if you already have the host computer J-Link software installed. The integrated
J-Links often have a debug serial port attached to a target UART too!

Other features of note:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

| Black Magic Probe | $60 | ✅ | yes, +3.3v (100mA) only | ✅ | 〰️ ok (but open source!) |
| DAPLink | $5-$15 | ❌ | | ✅ | 〰️ ok (but open source!) |
| FTDI FT2232H | $35 ($5 for chip only) | ✅ | varies, adafruit yes | ❌ | 🔼 good |
| Raspberry Pi Pico | $4 | ✅ | | ❌ | 🔼 good + open source |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix: basically is open source, schematic + sw is published

@franc0is
Copy link
Member

Good start! I'd argue that you need a bit more pros/cons written up for each entry. You could have the "Software" portion (which is yet to be written) be a part two follow on article.


## Debug Adapter Hardware

First off, if you haven't already, take a look at Chris's deep dive on Cortex-M
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this a callout, rather than the first sentence of the paragraph

debug interfaces, which also covers some of the probes in this article:

<https://interrupt.memfault.com/blog/a-deep-dive-into-arm-cortex-m-debug-interfaces>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a sentence at the beginning of this section explaining what a debug adapter is.

Some probes will support JTAG too, but when working with Cortex-M devices, it's
often not as preferrable as SWD due to higher pin utilization.

Also I'll be focusing on non-trace enabled probes (though some will support some
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Also I'll be focusing on non-trace enabled probes (though some will support some
I'll be focusing on non-trace enabled probes (though some will support some

including flash algorithms (ability to write a program to target internal
flash).

It's fairly commonly included on development boards, which makes setup simpler
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
It's fairly commonly included on development boards, which makes setup simpler
It is fairly commonly included on development boards, which makes setup simpler

Depending on which FTDI chip you're using, you can use spare UARTs for a debug
console to your target.

One nice thing about this approach is it's possible to add the FTDI chip to your
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd argue that you can do this with DAPLink as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh good point 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants