-
Notifications
You must be signed in to change notification settings - Fork 132
Leonardo upload still having problems (but is already much better) #783
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
The problem for avrdude is caused by |
Hello, I have already solved the problem myself as I suggested above by adding the extra verbose (-v) parameter. However what I have seen is when I create a new project I have to change this parameter again for every single project I create. regards, Marcel |
The -v is for verbose uploading. It doesn't make sense to me that this fixes the problem. (I'm not saying it doesn't) |
Hello,
Works like a charm...NO more errors because the COM port has not appeared yet.. The extra console output it creates now, probably slows down the application just a couple of milliseconds on my system, just enough to have the new COM port being available again.. I am closing the subject now.. Again thans for the support and info.. Marcel |
Cool I'm happy there is a workaround. |
I reopen as a workaround is not a real fix. I fear I'll have to look at jssc for this and other issues |
I just finished quite a bit of stuff in the upload area. |
Hello,
here is the Leonardo guy again, with more information. With the nightly build the upload is already going much better, but 2 out of 10 times still going wrong.
This is the error I receive:
java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Unknown Source)
at java.util.regex.Matcher.reset(Unknown Source)
at java.util.regex.Matcher.(Unknown Source)
at java.util.regex.Pattern.matcher(Unknown Source)
at jssc.SerialPortList.getWindowsPortNames(SerialPortList.java:311)
at jssc.SerialPortList.getPortNames(SerialPortList.java:294)
at jssc.SerialPortList.getPortNames(SerialPortList.java:178)
at io.sloeber.core.api.Serial.list(Serial.java:132)
at io.sloeber.core.communication.ArduinoSerial.wait_for_com_Port_to_appear(ArduinoSerial.java:74)
at io.sloeber.core.communication.ArduinoSerial.makeArduinoUploadready(ArduinoSerial.java:217)
at io.sloeber.core.tools.uploaders.arduinoUploader.uploadUsingPreferences(arduinoUploader.java:58)
at io.sloeber.core.tools.uploaders.UploadSketchWrapper$UploadJobWrapper.run(UploadSketchWrapper.java:178)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
And this is a copy of the console at that moment:
Starting upload
using arduino loader
Forcing reset using 1200bps open/close on portCOM10
PORTS { CNCA0, CNCB0, COM1, COM7, COM8, COM10, COM25,} / { config error:, see https://github.com/jantje/arduino-eclipse-plugin/issues/252,} => { config error:, see https://github.com/jantje/arduino-eclipse-plugin/issues/252,}
Comport reset took250ms
Using comportconfig error: from now onwards
Ending reset
LaunchingE:\Eclipse_Sloeber_Arduino/arduinoPlugin/packages/arduino/tools/avrdude/6.3.0-arduino9/bin/avrdude -CE:\Eclipse_Sloeber_Arduino/arduinoPlugin/packages/arduino/tools/avrdude/6.3.0-arduino9/etc/avrdude.conf -patmega32u4 -cavr109 -Pconfig error: -b57600 -D -Uflash:w:E:\Eclipse_Sloeber_WS\First_Test/Release/First_Test.hex:i
Output:
avrdude: ser_open(): can't open device "config": Het systeem kan het opgegeven bestand niet vinden.
avrdude done. Thank you.
/arduinoPlugin/packages/arduino/tools/avrdude/6.3.0-arduino9/bin/avrdude finished
upload done
This is a copy of the console of the Arduino IDE:
Een reset wordt geforceerd (met 1200bps openen/sluiten) op poort COM10
PORTS {CNCA0, CNCB0, COM1, COM7, COM8, COM10, COM25, } / {CNCA0, CNCB0, COM1, COM7, COM8, COM25, } => {}
PORTS {CNCA0, CNCB0, COM1, COM7, COM8, COM25, } / {CNCA0, CNCB0, COM1, COM7, COM8, COM9, COM25, } => {COM9, }
Found upload port: COM9
E:\Tools\Electronica\arduino-1.6.11\hardware\tools\avr/bin/avrdude -CE:\Tools\Electronica\arduino-1.6.11\hardware\tools\avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -PCOM9 -b57600 -D -Uflash:w:C:\Users\Marcel\AppData\Local\Temp\build0cd86ac184092c3731ad72037cfae4f0.tmp/Blink.ino.hex:i
avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.
Programmer supports the following devices:
Device code: 0x44
avrdude: devcode selected: 0x44
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% -0.00s
avrdude: Device signature = 0x1e9587
avrdude: reading input file "C:\Users\Marcel\AppData\Local\Temp\build0cd86ac184092c3731ad72037cfae4f0.tmp/Blink.ino.hex"
avrdude: writing flash (4148 bytes):
Writing | ################################################## | 100% 0.32s
avrdude: 4148 bytes of flash written
avrdude: verifying flash memory against C:\Users\Marcel\AppData\Local\Temp\build0cd86ac184092c3731ad72037cfae4f0.tmp/Blink.ino.hex:
avrdude: load data flash data from input file C:\Users\Marcel\AppData\Local\Temp\build0cd86ac184092c3731ad72037cfae4f0.tmp/Blink.ino.hex:
avrdude: input file C:\Users\Marcel\AppData\Local\Temp\build0cd86ac184092c3731ad72037cfae4f0.tmp/Blink.ino.hex contains 4148 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.04s
avrdude: verifying ...
avrdude: 4148 bytes of flash verified
Having a look at the command for AVR dude:
Eclipse IDE:
E:\Eclipse_Sloeber_Arduino/arduinoPlugin/packages/arduino/tools/avrdude/6.3.0-arduino9/bin/avrdude -CE:\Eclipse_Sloeber_Arduino/arduinoPlugin/packages/arduino/tools/avrdude/6.3.0-arduino9/etc/avrdude.conf -patmega32u4 -cavr109 -Pconfig error: -b57600 -D -Uflash:w:E:\Eclipse_Sloeber_WS\First_Test/Release/First_Test.hex:i
Arduino IDE
E:\Tools\Electronica\arduino-1.6.11\hardware\tools\avr/bin/avrdude -CE:\Tools\Electronica\arduino-1.6.11\hardware\tools\avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -PCOM9 -b57600 -D -Uflash:w:C:\Users\Marcel\AppData\Local\Temp\build0cd86ac184092c3731ad72037cfae4f0.tmp/Blink.ino.hex:i
==> Look at the part that says avrdude.conf -v -patmega32u4 of the Arduino IDE..
I think this is where the problem is...
The Eclipse IDE (or AVRDUDE) seems to be too fast or soon trying to send the data to the Arduino (COM9 not attached yet)....
(See also the ERROR reported : Forcing reset using 1200bps open/close on portCOM10
PORTS { CNCA0, CNCB0, COM1, COM7, COM8, COM10, COM25,} / { config error:, see https://github.com/jantje/arduino-eclipse-plugin/issues/252,} => { config error:, see https://github.com/jantje/arduino-eclipse-plugin/issues/252,}
Comport reset took250ms )
Probably the Arduino IDE gets just a little bit time to have the PC Switched and Attached the COM9 again, probably because of this -v (Verbose) output..
Hope this helps to improve further..
kind regards,
Marcel
The text was updated successfully, but these errors were encountered: