openocd: use exit instead of shutdown#2472
Conversation
Using the shutdown command directly will trigger an exit code.
|
does this actually execute the |
|
Not sure, the openocd documentation is a bit blurry here - but with OlegHahm@aedaa10 it should do so. From openocd documentation |
|
I have some problem with the exit parameter and OpenOCD 0.8.0. I am investigating now. |
|
in OpenOCD 0.8.0 the
|
|
The behaviour according to the 0.8.0 manual is to shut down OpenOCD after the Since the program command is a convenience macro for the real flash commands and it has different semantics for different versions it may be better to use the real commands instead? or if you prefer ihex: |
|
(EDIT: At least in post January openocd revisions.) |
|
If I see it correctly, we have three choices:
Personally, I think I prefer 3. |
|
In my opinion 1. is quite ok. How do we go on here? |
|
@PeterKietzmann I would like to wait with 1. until at least a supported version is in the upstream repos of Ubuntu (possibly even LTS) before forcing people to upgrade when there is no functional reason to upgrade to the prerelease version. So I vote no. 3 |
|
Well, I do agree with waiting for a supported version. Also I believe that your solution is fine :-) . Just wanted to trigger the conversation/progress of this PR |
|
+1 for 3 |
|
Will be rebased as soon as OpenOCD 0.9.0 is part of most common distributions. |
9f184dd to
45554bf
Compare
@OlegHahm openocd-0.9.0 seems to be part of ubuntu since the 2015-09 version. Is ubuntu common enough? |
|
I think the agreement was to wait for the version in Ubuntu LTS, i.e. waiting for Ubuntu 04.2016 |
That's what I just wanted to say. Also keep in mind that 14.04 will be supported until April 2019. |
|
(though I use a hand-build version of openocd I run 14.04 on one of my main working machines) |
Not having system support doesn't mean that people can't install a newer version by hand .. EDIT: basically, what you said above (: |
|
What's the status on this? the new Ubuntu release is already there with the new OpenOCD version AFAIK, so can this be merged for the release? |
|
Can anybody try? |
|
Please rebase and I can give it a try ;) |
|
good point |
|
Unfortunately, openocd.org seems to be down. |
|
But rebase should be up it isn't? :P |
|
Actually it is. |
|
All is up now, rebase? :D |
|
If I see this correctly, the openocd maintainers have changed to not let shutdown return an error value any more unless you give it a parameter. Hence, we can go with #2897. |
|
Great, thanks! |
Using the shutdown command directly will trigger an exit code.