Today I bought my first Arduino Leonardo, when I arrived home I tried it and it worked fine. After a few code uploads, the "L" led wasn't blinking after reset, like always does and the IDE stays uploading, when I press upload again it crashes, this is the error:
processing.app.debug.RunnerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:160)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
at processing.app.SketchController.upload(SketchController.java:713)
at processing.app.SketchController.exportApplet(SketchController.java:686)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2135)
at java.lang.Thread.run(Thread.java:745)
Caused by: processing.app.SerialException: Error usando el puerto "COM11"
at processing.app.Serial.touchForCDCReset(Serial.java:99)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:144)
... 5 more
Caused by: jssc.SerialPortException: Port name - COM11; Method name - openPort(); Exception type - Port busy.
at jssc.SerialPort.openPort(SerialPort.java:164)
at processing.app.Serial.touchForCDCReset(Serial.java:93)
... 6 more
Ha ocurrido un error mientras se enviaba el sketch
Exception in thread "Thread-20" java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)
at java.util.ArrayList$Itr.next(ArrayList.java:851)
at cc.arduino.contributions.libraries.LibrariesIndexer.rescanLibraries(LibrariesIndexer.java:123)
at cc.arduino.contributions.libraries.LibrariesIndexer.setLibrariesFolders(LibrariesIndexer.java:106)
at processing.app.BaseNoGui.onBoardOrPortChange(BaseNoGui.java:682)
at processing.app.Base.onBoardOrPortChange(Base.java:1297)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2165)
at java.lang.Thread.run(Thread.java:745)
so I tried to do the same in Linux, I boot on my lubuntu pendrive and the same problem.
Who can help me? sorry if my English is hard to read :c I'm from Chile