I have failed to program ATmega8A using USBasp. I am sure that the wiring is ok. I have programmed an ATtiny13A several times with the same USBasp. However, no luck with the ATmega8A. This is the error avrdude shows-
avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: initialization failed, rc=-1
Double check connections and try again, or use -F to override this check.
I tested without the microcontroller connected and found the same error. Which means I have broken connection. I don’t think so.
Is there any possible reason avrdude shows this error without broken connection?