wait for DFU device to appear#417
wait for DFU device to appear#417danielkucera wants to merge 1 commit intorogerclarkmelbourne:masterfrom
Conversation
|
I have not tested your modification yet, but it might be a good idea to update tools/linux64/maple_upload too |
|
Works great for me on Linux. Without this I get one successful upload in a dozen attempts or so (symptoms as in #328), with this, I get reliable uploads. In addition to linux and linux64, same thing on Mac, I presume. (But actually, when is linux64 used? I am running this on a 64 bit linux system, and for me, the "linux" code is being used.) |
|
I'm not sure there is a preinstalled You will have to make custom changes to platform.txt (or use platform.local.txt) to make use of the linux64 tools. It's not really needed with you have IA32 installed, but some of us actually use the linux64 tools. |
kolyshkin
left a comment
There was a problem hiding this comment.
suggestion to better print progress
| while ! lsusb | grep -i ${usbID} | ||
| do | ||
| sleep 1 | ||
| echo "." |
There was a problem hiding this comment.
I'd suggest doing echo -n . instead, i.e. remove the newline. Also, add an empty echo after done, so it will look like this:
Waiting for device in DFU mode .........
|
|
||
| "${DIR}/upload-reset" ${dummy_port_fullpath} 750 | ||
|
|
||
| echo "Waiting for device in DFU mode" |
There was a problem hiding this comment.
add -n flag to echo (see below)
| do | ||
| sleep 1 | ||
| echo "." | ||
| done |
There was a problem hiding this comment.
add an empty echo (will print a newline) after done
|
closing in favour of #297 |
No description provided.