I was programming a device with an ATmega328p through an Atmel ICE. It has been working normally for weeks, and suddenly I receive the error:
Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xc0, expected 0x00 (Command has failed to execute on the tool)
Unable to enter programming mode. Verify device selection, interface settings, target power, security bit, and connections to the target device.
I can still read the target voltage. Neither ISP nor debugWIRE work anymore.
I didn't change anything, and I can still program identical devices. Maybe it was cause by unstable power (the clips came off a few times while operating), or I erroneously quit debug mode at some point.
Furthermore, the device still works with the last code I uploaded.
Is it bricked? Is there a way to restore it without high voltage resetting?
Thanks a lot for the help!