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

Download and add openocd to the system path #9

Merged
merged 9 commits into from
Apr 19, 2021
Merged

Download and add openocd to the system path #9

merged 9 commits into from
Apr 19, 2021

Conversation

patsytau
Copy link

@patsytau patsytau commented Apr 17, 2021

There is now a button in the configure dialog, cunningly named "Download OpenOCD", which, shockingly, downloads OpenOCD, unpacks it to a directory named openocd/ adjacent to the script itself. It then adds it to the system path (and this is picked up by the validation of the main dialog).

Apologies for the size of the change, the stuff relating to downloading from GitHub is pretty self-contained though.

This would resolve issue #2

PinetimeFlasher.pyw Outdated Show resolved Hide resolved
PinetimeFlasher.pyw Show resolved Hide resolved
@pfeerick
Copy link
Owner

I think once these are discussed and resolved, this most certainly closes #2. I also think with a few minor tweaks it will do #1, but lets not get ahead of ourselves! And you went that next step and downloaded openocd as well! Thank you for this, I couldn't have asked for better!

@pfeerick pfeerick linked an issue Apr 18, 2021 that may be closed by this pull request
Patsy and others added 4 commits April 18, 2021 18:59
…resent or not.

If it isn't present, this won't hurt, and if it is, we're just setting it up sooner.
So that if you just downloaded OpenOCD,
the app will update the current ready status.
Copy link
Owner

@pfeerick pfeerick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for addressing those issues... it now works perfectly on both Windows and Linux (x64)! :)

I've just added a call to update_control_statuses() when the config dialog has been closed, so that it unlocks the main UI if you just installed OpenOCD and am now merging, making a few more changes and pushing upstream to ElectrO ;)

@pfeerick pfeerick merged commit b1ea202 into pfeerick:main Apr 19, 2021
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.

Use portable xpack-openocd
2 participants