Hi I have a custom built PCB with an ATMEGA328p onboard. I have a programming header attached to the programming pins and have been programming this successfully using ISP on Atmel Studio 7 for ages. I have recently started debugging the unit using atmel studio 7 and changed from ISP to Debug Wire in the Tools menu and have been able to compile and debug the target fine. Now I wish to switch back to programming via ISP however when I try I get the message:
Failed to enter programming mode, ispEnterProgMode: Error Status received Got 0xc0, expected 0x00
I cannot read device signature. I think its something about disabling the debugWire but I have no idea of how to do this.
I should also add: I have tried using the "disable DebugWIRE and close" option and it says: Failed to disable debugWire: Failure to enter programming mode. ispEnterProgMode: Error Status received Got 0xc0, expected 0x00. Please cycle target power to restore debugWire mode
Can you help?