You are not logged in.

#1 2013-09-10 00:59:05

emel
Member
Registered: 2012-04-25
Posts: 3

avrdude not recognizing programmer

I am trying to program an avr with a Kanda branded avr isp programmer.

avrdude keeps complaining timeout or programmer not found.
I know the programmer works and the system seems to identify the usb-rs232 chip in it just fine, it just doesn't seem to do anything when plugged in.

This is the output from dmesg when the programmer is plugged in:
Also can anyone tell me why USB0 AND USB1 appear when I plug it in? FWIW, I've tried every "programmer" in avrdude to no avail.

[59369.543484] usb 2-1.6: new full-speed USB device number 12 using ehci-pci
[59369.634331] ftdi_sio 2-1.6:1.0: FTDI USB Serial Device converter detected
[59369.634379] usb 2-1.6: Detected FT2232C
[59369.634384] usb 2-1.6: Number of endpoints 2
[59369.634387] usb 2-1.6: Endpoint 1 MaxPacketSize 64
[59369.634391] usb 2-1.6: Endpoint 2 MaxPacketSize 64
[59369.634394] usb 2-1.6: Setting MaxPacketSize 64
[59369.634740] usb 2-1.6: FTDI USB Serial Device converter now attached to ttyUSB0
[59369.636306] ftdi_sio 2-1.6:1.1: FTDI USB Serial Device converter detected
[59369.636349] usb 2-1.6: Detected FT2232C
[59369.636353] usb 2-1.6: Number of endpoints 2
[59369.636357] usb 2-1.6: Endpoint 1 MaxPacketSize 64
[59369.636360] usb 2-1.6: Endpoint 2 MaxPacketSize 64
[59369.636364] usb 2-1.6: Setting MaxPacketSize 64
[59369.636796] usb 2-1.6: FTDI USB Serial Device converter now attached to ttyUSB1

Offline

#2 2013-09-10 03:54:31

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: avrdude not recognizing programmer

I do not have a programmer in front of me, but....    What is the device node that avrdude is using?  It may be /dev/ttyS0.  You need to ensure that the device node is /dev/ttyUSB0


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2013-09-10 21:26:37

emel
Member
Registered: 2012-04-25
Posts: 3

Re: avrdude not recognizing programmer

I have been trying this and variations thereof:

sudo avrdude -cstk200 -pt2313 -vvvv -P/dev/ttyUSB0

tried with many of the seemingly possible programmers, ttyUSB0 and ttyUSB1.

I have gotten this programmer working with avrdude before but it was a while ago and a don't recall jumping through any hoops.

The most "promising" errors I get ( promising in that it's not "timeout" or "device not responding") are:

avrdude: can't claim device "/dev/ttyUSB0": Inappropriate ioctl for device

I'm not sure where to go from here or who to ask.

Offline

#4 2013-09-19 22:11:01

emel
Member
Registered: 2012-04-25
Posts: 3

Re: avrdude not recognizing programmer

So now I have tried a different programmer https://www.sparkfun.com/products/9825 hoping that the Kanda programmer was just using some obscure protocol instead of stk500 standard.

This programmer does NOT appear in /dev anywhere, as the Kanda programmer did. However, avrdude seems content to use it's default /dev/parport0 but I still get this no matter what:

avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

I have libusb, libusb-compat installed. I have no idea what else can be peculiar about my setup and have googled to no end so far.

Where should my troubleshooting take me now?

Offline

Board footer

Powered by FluxBB