For my current project I am using Atmel Studio 6 for the first time after using AVRstudio 4 happily for years. The target is an ATMega328p on our board. The programming interface is a JTAGICE Mk II with the supplies 6 pin isp adaptor. Atmel Studio 6 V6.0.1966 SP2
AVRGCC V462. This is also my first experience with the Debugwire interface. It seems that sometimes I lose the ability to connect withe the debugger. When I go to download the code I get a message box that says
"Failed to launch debug session with debugwire. This could be caused by reset line circuitry or disabled debugWire interface. Make sure that the reset line is free before continuing. Do you want to use SPI to enable the DWEN fuse?"
No hardware has changed and everything was working previously. If I click yes to enable DWEN fuse it fails. I have also not been able to disable the DWEN fuse. I have been able to get it working in the past by cycling power, restarting Atmel Studio, Restarting my computer, or some combination of these things. Currently it has been in this state for 2 days and I am up against a deadline. Any suggestions?