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

tools/openocd: check return code of flashing command #4351

Closed

Conversation

thomaseichinger
Copy link
Member

Up to now, make flash will always succeed as the return
value of the flash command is omitted. This can be confusing
when called by statements like make flash term.
With this change make will abort if flashing was not successful.

@Kijewski Is $? the right value to check?

Up to now, `make flash` will always succeed as the return
value of the flash command is omitted. This can be confusing
when called by statements like `make flash term`.
With this change make will abort if flashing was not successful.
@thomaseichinger thomaseichinger added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Area: tools Area: Supplementary tools labels Nov 27, 2015
@thomaseichinger thomaseichinger added this to the Release 2015.12 milestone Nov 27, 2015
@OlegHahm
Copy link
Member

Doesn't shutdown always trigger an exit code?

@OlegHahm
Copy link
Member

see also #2470.

@thomaseichinger
Copy link
Member Author

@OlegHahm Tested this on OS X and (L)ubuntu and behaves as expected with openocd>=0.9.0.
As discussed offline already, I wonder if anybody uses older openocd versions as many of our boards require 0.9.0 or higher.

@OlegHahm OlegHahm modified the milestones: Release 2015.12, Release 2016.03 Dec 8, 2015
@Kijewski
Copy link
Contributor

ACK, please squash and merge at will.

@OlegHahm
Copy link
Member

Why not #2472 if we assume users to have OpenOCD>= 0.9.0?

But AFAIK Ubuntu LTS still ships with an older version.

@Kijewski
Copy link
Contributor

According to [1] trusty (14.4.) and precise (12.4), which are still supported by Ubuntu, use OpenOCD 0.7.0 and 0.5.0, resp.
Precise is far too outdated, but maybe trusty is still in our scope?

1: https://launchpad.net/ubuntu/+source/openocd

@OlegHahm
Copy link
Member

If I remember the discussion correctly, we wanted to make sure that the scripts should work on the latest Ubuntu LTS. This would 14.4, but should be replaced in about two months if I'm not mistaken.

@OlegHahm OlegHahm modified the milestones: Release 2016.07, Release 2016.04 Mar 23, 2016
@kYc0o
Copy link
Contributor

kYc0o commented Jul 22, 2016

#2897 also address the issue. So do you agree to close this one?

@kYc0o
Copy link
Contributor

kYc0o commented Jul 28, 2016

Closed by #2897

@kYc0o kYc0o closed this Jul 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: tools Area: Supplementary tools Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants