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

Simplify openocd launching using board configuration #103

Open
johnthagen opened this issue Aug 5, 2018 · 4 comments
Open

Simplify openocd launching using board configuration #103

johnthagen opened this issue Aug 5, 2018 · 4 comments

Comments

@johnthagen
Copy link
Contributor

Once OpenOCD issue 200 is fixed, we can update the guide to simplify the launching of openocd from two arguments to one argument.

Here:

openocd -f interface/stlink-v2-1.cfg -f target/stm32f3x.cfg

Can become:

openocd -f board/stm32f3discovery.cfg

But this can't be merged until OpenOCD fixes the issue linked above because the current stm32f3discovery.cfg points to the older interface/stlink-v2-1.cfg.

@johnthagen
Copy link
Contributor Author

Confirmed through discussions on the issue that this has been fixed in master and should then be fixed in the next OpenOCD release.

@japaric
Copy link
Member

japaric commented Aug 19, 2018

Nice!

Before landing this change we should also check that easy to install the latest OpenOCD release on the 3 major OSes (specially on Windows).

@therealprof
Copy link
Contributor

@johnthagen One of my biggest beefs with OpenOCD is that they're extremely release-unhappy.

@japaric Yeah, that's trivial. For Windows there're several sites providing packages, e.g. http://gnutoolchains.com/arm-eabi/openocd/. For macOS there's homebrew: brew install open-ocd, for Linux there're a couple of different ways how to obtain it but it is always possible to build it yourself.

@johnthagen
Copy link
Contributor Author

And just in case anyone on Mac finds this thread and wants to try this out before the next OpenOCD release, the Homebrew command to get the latest master (with the unreleased fix) is:

$ brew install --HEAD openocd

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

No branches or pull requests

3 participants