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

Continuous flashing of the same device freezes the flashing at some point on Linux #227

Closed
VeliMattiLahtela opened this issue Mar 11, 2016 · 5 comments
Labels

Comments

@VeliMattiLahtela
Copy link

The following issue has been seen with newest raspbian and Ubuntu 14.04 LTS:

The binary file size is around 900Kb.

The board K64F:
Version: 0226
Build: Aug 24 2015 17:06:30
Git Commit SHA: 27a236b9fe39c674a703c5c89655fbd26b8e27e1
Git Local mods: Yes

Running a bash script that repeats the same flashing command will at some point "freeze" the flashing.
The script I'm running:

#!/bin/bash
for i in `seq 1 10`;
do
   sudo pyocd-flashtool -d debug -b 02400226c36f3e5b0000000000000000000000003eb6c3e3 my_bin.bin
done   

I have not determined an exact amount of flashing times required before it freezes, seems to be quite random.

This is not reproducible on Windows.

I also noticed that adding "sudo pyocd-tool -b 02400226c36f3e5b0000000000000000000000003eb6c3e3 reset" before the flash command prevents the freeze.

Running the flash with debug doesn't provide any more information when the "freeze" happens.

I tried to backtrace the fail with no luck.

@c1728p9 c1728p9 added the bug label Mar 13, 2016
@c1728p9
Copy link
Collaborator

c1728p9 commented Mar 25, 2016

That is very strange. Are you running Ubuntu inside a virtual machine or natively? Also, you are unable to get the python backtrace when this happens?

@VeliMattiLahtela
Copy link
Author

Ubuntu was run on VM.

@c1728p9
Copy link
Collaborator

c1728p9 commented Apr 9, 2016

Was this inside virtual box? It has some known USB driver bugs. There was a PR to work around this a while back, but it never got merged:
#154

@VeliMattiLahtela
Copy link
Author

Not with Virtual box, VMware Player was used.

@c1728p9
Copy link
Collaborator

c1728p9 commented Feb 11, 2017

If it is the same issue as #154 this should be fixed by the timeout added here. If you are still seeing this hang please re-open with steps to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants