Having read postings in this forum I was able to setup an usbasp programmer on my new pc. It works well with avrdude (with user rights only) but the arduino IDE regardless whether user or root still has the serial port selection greyed out and does not program the hardware. I could now need some help from you what else to do.
Thanks a lot in advance!
Some details on my system:
Kubuntu 14.4
Arduino 1:1.0.5+dfsg2-2
avrdude 6.0.1
usbasp programmer updated with usbasp.atmega8.2011-05-28.hex
Having read postings in this forum I was able to setup an usbasp programmer on my new pc. It works well with avrdude (with user rights only) but the arduino IDE regardless whether user or root still has the serial port selection greyed out and does not program the hardware. I could now need some help from you what else to do.
Well a USBasp programmer is not a COM port serial device (it's another USB type) one wouldn't see a COM port active for it's use. One just selects the programmer type in the IDE tools menu and then either performs the burn bootloader option in the tools menu, or performs the 'upload sketch using programmer' option in the files menu. You can't then use the normal IDE upload operation, unless the arduino board is also plugged into the PC, in which case there would be an active COM port available. After that if there are problems there will be error messages posted in the IDE. Selecting the verbose option might give you a better handle on what the error is. It's usually a USB driver error. I'm not a Linux user, but seem to recall the a user may need proper rights to access the USB driver (root access?).
Thanks a lot in advance!
Some details on my system:
Kubuntu 14.4
Arduino 1:1.0.5+dfsg2-2
avrdude 6.0.1
usbasp programmer updated with usbasp.atmega8.2011-05-28.hex
I must admit, I don't get the "USBasp programmer is not a COM port serial device" part in full (which I read a few times already) so please help me understanding...
As far as I can understand /dev/ttyACM0 uses a a V.250 (Hayes) compatible serial transfer over USB and this one is actually available as /dev/ttyACM0 for avrdude at the command line. Furthermore, I can connect a UNO board and program it with programmer = USBasp and "serial port" = /dev/ttyACM0 settings using IDE without any hassle. Taking the same board connecting the separate USBasp board to the UNO board's (or alternatively NANO board's) ISP connector, the /dev/ttyACM0 is not recognized by the IDE but at the command line. Of course, everything happens under the same conditions, means user rights and whatsoever.
Assuming the IDE uses avrdude in the same way I do on the command line there should not be a problem, right?
The IDE error message tells me that /dev/ttyACM0 was not found and doubts whether I selected the correct serial port. See here:
processing.app.SerialNotFoundException: Der serielle Port '/dev/ttyACM0' wurde nicht gefunden. Haben Sie den richtigen aus dem Menü Tools > Serieller Port ausgewählt?
at processing.app.Serial.<init>(Serial.java:191)
at processing.app.Serial.<init>(Serial.java:77)
at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:77)
at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:175)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
at processing.app.Sketch.upload(Sketch.java:1671)
at processing.app.Sketch.exportApplet(Sketch.java:1627)
at processing.app.Sketch.exportApplet(Sketch.java:1599)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2380)
at java.lang.Thread.run(Thread.java:744)
Sorry I''m not a linux type. On my windows machine if I just plug in my USBasp programmer onto the ICSP pins of my arduino board the arduino IDE (but not the arduino board via it's USB connector) does not show any COM port device available, but of course the programmer works fine doing the two things it can do. Maybe some linux types can help you.
It never occurred to me that there is a difference between File | Upload with programmer and the regular upload button. Thanks again, I'm really glad now.