Skip to content

Add OpenOCD Serial Number Flag #119

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

Merged
merged 2 commits into from
Mar 28, 2025
Merged

Add OpenOCD Serial Number Flag #119

merged 2 commits into from
Mar 28, 2025

Conversation

charles37
Copy link
Contributor

This PR adds the ability to select a specific board by serial number when using OpenOCD, similar to the existing JLink serial number functionality. The enhancement allows users to specify which board to target when multiple identical boards are connected to the same machine.

The changes include:

  • Adding a new --openocd-serial-number CLI argument
  • Implementing the serial number in the OpenOCD command construction with adapter serial command

--openocd-serial-number Applies the proper command sequence for J-Link adapters

--openocd-serial-number correctly order the commands for different interface types

--openocd-serial-number interface jlink; should be the first part of the command.

--openocd-serial-number adapter driver jlink

--openocd-serial-number: revert changes to source path

--openocd_serial_number: test of removing adapter driver jlink

--openocd-serial-number: patch misnamed serial_no_cmd

--openocd-serial-number flag implementation
@lschuermann lschuermann requested a review from bradjc March 12, 2025 16:48
@bradjc bradjc merged commit d8ea3ab into tock:master Mar 28, 2025
0 of 4 checks passed
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.

3 participants