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
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?