-
Notifications
You must be signed in to change notification settings - Fork 92
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
particle update
does not throw error if dfu-util
errors
#206
Comments
Do you know what error |
A full output from |
Here's a sample output of the error during Write:
The error message during erase is different though. |
Here's a bootloader that will cause an Erase error after 15 seconds of up time, so easy to make a transfer pass, then fail. Here's a sample output of the Erase error:
|
Ok. I know the issue. It is currently ignoring |
Cool.. I know there are still some weird cases, but here's what things look like for me in this one case when everything completes correctly.
|
@brycekahle I think we should also add this error as well |
We should ignore that error? |
Nope, if we see the Erase error we can be reasonably sure that the dfu-util process failed to write the image correctly. We should not say everything completely successfully in that case. |
Great, so the change I made only ignores a very specific message. Everything else is treated like an error. |
Ahh.. Hmm.. When I looked at your change, it included a test for |
I just checked with the updated CLI and it still ignores the Write error, which you can reproduce with the binary in the first post. Second post of mine has the error. |
Hmm, ok. Re-opening. |
It also continues to ignore the Erase error, albeit ending |
Bootloader firmware will now propagate an error back to the host now when there is a write/erase failure during DFU transfer, however the CLI does not indicate an error if it sees one during
particle update
Note: This may be an inherent issue with all
dfu-util
usage in the CLI.This special electron v0.4.8-rc.6/v0.4.9 compatible bootloader will cause a write error after 15 seconds of uptime, you can use this to verify the issue and fix. Put in DFU mode, and wait about 10 seconds, then start the
particle update
. If usingdfu-util
directly you can see the progress bar stop and error reported.The text was updated successfully, but these errors were encountered: