Hi all !
I am using Atmel Studio 7 and the Atmel ICE programmer to program and debug an ATmega328P. I have been able so far to use ISP to correctly read and write the fuses, read the signature, program the bootloader...
However, I wanted to debug my program and when I launched the debug session, when Atmel asked me to toggle the power on my ATmega328P, it then returned an error and now I can't do anything. If I try to read the signature on Atmel Studio, I have the following error message :
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.
If I try to disable Debugwire via atprogram with this command :
./atprogram -t atmelice -i debugwire -d atmega328p dwdisable
the program returns this error :
Firmware check OK
[ERROR] Could not establish connection to device. Please check input parameters, hardware connections, security bit, target power, and clock values.
Failure when increasing communication baud. Debugger command Activate physical failed. (TCF Error code: 1)
And I can't use ISP anymore ...
The fuses before enabling the DWEN fuse were : extended : 0xFF, high : 0xD6, low : 0xFF
Don't see what I can do to fix it, thanks for your help