avrdude error

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

I'm new at this. Im trying to program the ATMEGA 16 with a USBASP V2.0 by LC Technology. I'v downloaded WinAVR to program there and my OS is Windows 7 64 bits. To connect my USBASP with the ATMEGA 16 I'v used both diagrams:

 

 

 

The problem starts when I test in the cmd the next avrdude line:

avrdude -c usbasp -p m16

When I run that I get this:

 

avrdude: warning: cannot set sck period. please check for usbasp firmware update
.
avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude done.  Thank you.

 

How can i fix that? Thank you.

 

 

 

 

 

Last Edited: Sat. Aug 11, 2018 - 08:10 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Pin 1 is the RED stripe (ie your pin 9), or at least it should be!

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

I changed it using this:

 

 

but I still get the same errors. Thank you very much for answering.

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

You could have damaged the programmer or could  be something else. I don't do AVRdude so someone else will need to chime in.

 

Meanwhile you need to tell us as much as possible about your set up, a circuit diagram and a photo would be good in case there is another hardware problem.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Do you have female/female breadboard wires? You could use them instead of the cable, so that you can be absolutely sure of the connections.

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

It's only the MCU connected to the usbasp. I will leave some photos:

Attachment(s): 

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

Didn't work either. Is it possible that the first connection damaged the MCU?

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

You need to connect all the power pins (AVCC and the corresponding GND), though this is probably not the cause of your problem.

 

edit: add pic

Last Edited: Sun. Aug 12, 2018 - 11:43 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry, I get irritated when I see things like that, I know, I know a newbee etc.....

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Pins 10/11 and 30/31 need +5v/gnd connected to them and there should be 100nf caps connected across both sets of pin pairs.

 

Jim

 

Click Link: Get Free Stock: Retire early!

share.robinhood.com/jamesc3274

 

 

 

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

Do you also know AVRDUDESS software instead of AVRDUDE? it is a somewhat more luxurious version of AVRDUDE

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

Be_logic wrote:
Do you also know AVRDUDESS software instead of AVRDUDE? it is a somewhat more luxurious version of AVRDUDE
avrdude is the key piece of programming software but it is command line driven. because the kids of today don't have the brain cells to remember a few command line options a lot of folks have written a GUI wrapper to run on top of avrdude to make selecting options easier in drop lists and so on. AVRdudess is one of those. But all these programs are still just invoking avrdude.exe so at the end of the day it does exactly the same thing. What quite a lot of these GUI interfaces do is "hide" the messages output by avrdude so you have less idea what's wrong when things don't work.