Repository navigation
JTAG flashing: wiring fields, dap_start pins, automatic SWD/JTAG choice (SDK + MCP) - #144
Merged
Merged
Conversation
…re table rev 16 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ransport select jtag; tests, docs Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…elds (mcp-min-sdk) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds JTAG to the on-pod CMSIS-DAP probe path, for firmware with the
jtagfeature (features table rev 16, gateware v61+, not the emulation image).jtag_tck,jtag_tms,jtag_tdi,jtag_tdo, optionaljtag_trst(LA 1-14).jtag_tckmay share a channel withswd_swclk,jtag_tmswithswd_swdio; any other overlap is an error.Transport.dap_start()takestck,tms,tdi,tdo,trst,port; SWD pins are optional when JTAG pins are given.flash()picks the port itself (no transport option): JTAG when all four JTAG pins are known (arguments override the profile) and either there are no SWD pins or the target is JTAG only (esp32,esp32s2,gd32vf103,fe310,k210,riscv*, matched on the OpenOCD config's file name); otherwise SWD. JTAG sends the JTAG pins (plus SWD pins with"port":"jtag"when wired) and runs OpenOCD withtransport select jtag. A pod without thejtagfeature raisesUnsupportedFeatureErrorbefore arming. Server-side (embeddedci.com) flashing of an uploaded build refuses JTAG for now.flashtakestck,tms,tdi,tdo,trst;set_wiring/wiringcarry the fields. Works with an older SDK for SWD (JTAG args say to upgrade).Tests: new
tests/test_jtag.py(validation, dap_start JSON, auto-selection, OpenOCD transport) and MCP wiring/flash tests. Unit tests only, no hardware.🤖 Generated with Claude Code