My USBasp was working fine. I could burn a program to the ATmega328p. But last night I wanted to change the clockspeed using clock_prescale_set(clock_div_t x)
.
After that it burned successfully and changed the clock speed, but I could not burn any new program. It shows this error message in AVR Studio:
avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
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.
What is the problem and how do I solve it?