wuxx / nanoDLA

24MHz sampling rate Logic Analyzer based on fx2lafw
627 stars 160 forks source link

New Feature CMSIS-DAP SWD Debug Adapter #14

Open elfmimi opened 2 years ago

elfmimi commented 2 years ago

Using an alternate firmware, you can use nanoDLA as a SWD Debug Adapter. It is a port of CMSIS-DAP, so openocd , pyOCD and probe-rs based Rust tool all work fine.

https://github.com/elfmimi/libfx2/releases/tag/ez-dap-preview

CH7: SWCLK CH5: SWDIO GND to GND

use https://pypi.org/project/fx2/ to do the followings.

To load it temporarily for trial run: python -m fx2.fx2tool -d 1D50:608C load ez-dap.hex

Unplugging and re-plugging will revert its function to logic-analyzer (fx2lafw) .

wuxx commented 2 years ago

great job, Thanks~!

elfmimi commented 2 years ago

New version, now compatible with pyOCD and RP2040. https://github.com/elfmimi/libfx2/releases/tag/ez-dap-rc