target doesn't answer

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

Hello, 

I'm new to AVR programming. I have a problem with avrdude. I'm using a ATmega32A and getting this error:

 

 

avrdude -p atmega32 -P usb -c usbasp    -U flash:w:main.hex 

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.

make.exe: *** [program] Error 1

 

 

I connected the vcc pin of USB-asp to the vcc pin of ATmega. Is it enough or should I connect a power supply to the ATmega? if it's not the issue, what can be the issue here?

Last Edited: Thu. Aug 4, 2022 - 07:03 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think that programmer can supply power via VCC, so you don't need external power. However, make sure you connect all MCU GND pins to GND and all MCU power pins (VCC and AVCC) to VCC.

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

USBasp - USB programmer for Atmel AVR controllers - fischl.de (Vtarget jumper, schematic at 1/3 page)

 

"Dare to be naïve." - Buckminster Fuller

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

Have you ever programmed an AVR before?

Have you successfully programmed an AVR using avrdude before?

Have you used this individual programmer before to program an AVR?

Was that AVR an ATmega32?

Was it this specific ATmega32 chip?

Is this a school electronics lab project?

Do you have access to an oscilloscope?

... a digital storage oscilloscope?

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

okay thank you!

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

thank you!

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

yes I have. But with a development board.