-
Notifications
You must be signed in to change notification settings - Fork 132
Uploading to Arduino Yun gives a 'programmer is not responding' error. #285
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
Comments
interesting .... very interesting. My 2 cents int PrefNewPortsCopySize=-10;
do {
....
/* end of dump to the console */
// code to capture the case: the com port reappears with a name that was in the original list
int NewPortsCopySize= NewPorts.size();
if ( (NewPortsCopy.size()==0) && (NewPortsCopySize == PrefNewPortsCopySize+1))
{
console.println("Comport appeared and disappeared with same name");
return defaultComPort;
}
PrefNewPortsCopySize=NewPortsCopySize;
if (NumTries++ > MaxTries) {
console.println("Comport is not behaving as expected");
return defaultComPort;
} Can you try and create a pull request if it works? |
@jantje , your fix is working. I have already created a pull request. I'm posting the plugin output for reference:
I can retest the issue after you integrate the fix into your mainline. |
I'm closing this issue as it is resolved now in the latest (version 2.4.0.201507150213 uploaded from http://www.baeyens.it/eclipse/nightly) build. |
thank you very mutch :-) |
I'm working with:
It fails when uploading the firmware to the Yun via /dev/ttyACM0 serial port:
Uploading with Android IDE 1.6.1 works fine. After a few debug sessions it looks like the Yun reset function (put it into a bootloader state) fails so the avrdude can not upload the firmware correctly.
I have played with the it.baeyens.arduino.communication.ArduinoSerial.java class and find out that wait_for_com_Port_to_appear method "fails" with the "Comport is not behaving as expected" message. Moreover I see that the Yun board is set to bootloader mode correctly but the wait_for_com_Port_to_appear takes more than 10 seconds to finish.
The default values:
gives exact 10 seconds of wait but the code does more than just waiting, so finally it takes 11.266 after that time the bootloader is off and avrdude is not ablt to connect to.
When I changed the MaxTries back to 20 it worked fine: after 5-6 secodns the wait_for_com_Port_to_appear finished with the default /dev/ttyACM0 port and the Yun bootloader was still active.
When I changed the UPLOAD.WAIT_FOR_UPLOAD_PORT to false it didn't worked as the /dev/ttyACM0 port was not ready yet (?).
This issue is related to #209 when the MaxTries has been increased from 20 to 40. Maybe we could set the MaxTries value to something in between like 30? We can leave that value to 40 but the additional 2000 ms wait time should be defined not only for Digistump DigiX board.
Which is better? Or maybe you have a better solution for that? I can make more tests if needed.
The text was updated successfully, but these errors were encountered: