Hello,

I'm trying to flash a atmega328p using avrdude using

avrdude -p atmega328p -c usbasp -P /dev/cuaU0 -D -U flash:w:blink.ihex:i

The command fails with error

avrdude: error: could not find USB device with vid=0x16c0 pid=0x5dc 
vendor='www.fischl.de' product='USBasp'

I tried with 'usbasp-clone' programmer and got back the same error. Does
anyone have an idea what I'm doing wrong?

Also, when I attach a serial device like this, how do I know which port
it was attached to? Right now, I have to search the internet and guess
based on 'standard port' used by a board. I'd love to figure this out
without having to search the internet.

dmesg after attaching the usbasp programmer (also attached an Arduino
after the usbasp and then again the usbasp):

### AML PARSE ERROR (0x279a7): Undefined name:
\\_SB_.PCI0.RP09.PEGP.NVDN
error evaluating: \\_SB_.PCI0.LPCB.EC__._Q26
ugen3 at uhub0 port 4 "www.fischl.de USBasp" rev 1.10/1.04 addr 7
ugen3 detached
ugen3 at uhub0 port 4 "www.fischl.de USBasp" rev 1.10/1.04 addr 7
ugen3 detached
umodem0 at uhub0 port 4 configuration 1 interface 0 "Arduino
(www.arduino.cc) product 0x0043" rev 1.10/0.01 addr 7
umodem0: data interface 1, has no CM over data, has break
umodem0: status change notification available
ucom0 at umodem0: usb0.0.00004.1
ucom0 detached
umodem0 detached
umodem0 at uhub0 port 4 configuration 1 interface 0 "Arduino
(www.arduino.cc) product 0x0043" rev 1.10/0.01 addr 7
umodem0: data interface 1, has no CM over data, has break
umodem0: status change notification available
ucom0 at umodem0: usb0.0.00004.1
ucom0 detached
umodem0 detached
ugen3 at uhub0 port 4 "www.fischl.de USBasp" rev 1.10/1.04 addr 7
ugen3 detached
ugen3 at uhub0 port 4 "www.fischl.de USBasp" rev 1.10/1.04 addr 7

-- 
Sadeep Madurange
PGP: 103BF9E3E750BF7E

Reply via email to