I am using an ATmega168 Xplained development board. I am able to compile and program my code onto this PCB, however, when I try to use the built in debugger, I get an error.
First it says, "Failed to launch debug session with debugWIRE. This could be caused by reset line circuitry or disable debugWIRE interface. Make sure that the reset line is free before continuing. Do you want to use SPI to enable the DWEN fuse."
If I click yes, then I get the error, "Failed to enable DW: Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xc0, expected 0x00 (command has failed to execute on the tool)"
This is an off the shelf dev board, with no mods, so I don't think there is a hardware issue. I've looked at all of the other forum threads by other people who have had this problem, but none of the ideas in those threads worked for me.
Any help is greatly appreciated.