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

Add a command line argument (--openocd-cmd) to allow callers to control what OpenOCD binary tockloader will invoke. #52

Merged
merged 1 commit into from
Feb 13, 2020

Conversation

jrvanwhy
Copy link
Contributor

Some boards (such as the nrf52840dk) can only be programmed by recent versions of OpenOCD. This change allows users to install a newer OpenOCD version locally (rather than system-wide) and use that OpenOCD version with tockloader.

Example invocation: tockloader flash --address 0x00000 --openocd --openocd-cmd "$HOME/openocd/install/bin/openocd" --board nrf52dk target/thumbv7em-none-eabi/release/nrf52840dk.bin

Open questions for reviewers:

  1. Should this be its own flag (current implementation) or a parameter inside openocd_options?
  2. Should I try to provide this for JLinkExe as well? I don't have a copy of JLinkExe to test with.

…trol what OpenOCD binary tockloader will invoke.

Some boards (such as the nrf52840dk) can only be programmed by recent versions of OpenOCD. This change allows users to install a newer OpenOCD version locally (rather than system-wide) and use that OpenOCD version with tockloader.

Example invocation: tockloader flash --address 0x00000 --openocd --openocd-cmd "$HOME/openocd/install/bin/openocd" --board nrf52dk target/thumbv7em-none-eabi/release/nrf52840dk.bin

Open questions for reviewers:

1. Should this be its own flag (current implementation) or a parameter inside openocd_options?
2. Should I try to provide this for JLinkExe as well? I don't have a copy of JLinkExe to test with.
@bradjc
Copy link
Contributor

bradjc commented Feb 13, 2020

I think a separate option for this makes sense. I think we can add this for jlink if someone needs it in the future. But right now the change would conflict with an open PR.

@bradjc bradjc merged commit 351d8fd into tock:master Feb 13, 2020
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