I would greatly appreciate any help i could receive on this problem. I am using the avrisp mkii. Up until yesterday, everything worked fine. I am using the microcontroller on a breadboard. I was using the avrispmkii w/ atmega328 board. I then installed boards for atmega1284p and deleted atmel studio and now it does not work. I get :
avrdude: stk500v2_command(): command failed
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: Unknown status 0x00
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
when I try to upload or burn the bootloader. Everything works if I connect the avrisp mkii directly to the arduino board through the icsp pins. I have searched the internet for a solution. I found a possible solution. Is stated that the programmer and the microcontroller are operating at the same speed and I needed to add:
avrdude -p atmega8 -P usb -c avrispv2 -U lfuse:w:0xe4:m -U hfuse:w:0xd9:m -B 22
somewhere, to get the microcontroller to 8Mhz, but I have no idea where to add it. Any help would be greatly appreciated. Thanks in advance.