Issue with the programmer and avrdude

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi guys,
My PC runs on Linux so i thought of setting up the AVR development environment on Linux. I installed avr-libc and avr-gcc and avrdude.
I generated a .hex file that blinks the led on ATMega32 for sample.
I tried to flash it using avrdude.
The problem here is Im not sure which hardware is used to flash it.. I purchased a usbisp programmer from a vendor who supplied the software for windows only.
I guess the programmer is usbtiny based and i executed the following commands and got the corresponding errors.

sudo avrdude -c usbtiny -p m32 -v
avrdude: programmer operation not supported

avrdude: Using SCK period of 10 usec

avrdude: error: usbtiny_transmit: error sending control message: Protocol error
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

avrdude: error: usbtiny_transmit: error sending control message: Protocol error

avrdude done. Thank you

I attached a file that has complete description of errors I got..Please help me out ..

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

After a quick search, usbisp seems to be a STK500 compatible programmer, so try -c stk500 (or stk500v2).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

It is clearly not a usbtiny.
I would guess that it is a usbasp

Of course you could use Google to identify your board, and post a link or photo.

The Chinese vendors on Ebay are not always too consistent with their spelling.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

With the programmer attached what is the output of the lsusb command?