-
Notifications
You must be signed in to change notification settings - Fork 2k
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
tools/openocd: check return code of flashing command #4351
Conversation
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.
Doesn't |
see also #2470. |
@OlegHahm Tested this on OS X and (L)ubuntu and behaves as expected with openocd>=0.9.0. |
ACK, please squash and merge at will. |
Why not #2472 if we assume users to have OpenOCD>= 0.9.0? But AFAIK Ubuntu LTS still ships with an older version. |
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. |
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. |
#2897 also address the issue. So do you agree to close this one? |
Closed by #2897 |
Up to now,
make flash
will always succeed as the returnvalue 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?