I am using Arduino UNO and Atmel Studio 7 to program the uC Atmeg328p. At first, everything worked fine and didn't have any problems. I was able to burn the code in Arduino UNO and make it work the way I wanted. Then my my problems started (not sure if it was a coincidence) after I tried to debug my code. Now when I get this 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.
I have attached an image of the error that I am getting.
The device signature is not recognized and I tried to implement all the sort of suggestions that I found on internet, but without any success. For instance, I tried to change the configuration of the fuses (now everything is set to 0x00), but when I try to program the new changes, I still get the same error message.
I have to say that I am quite new to uC, so I am pretty sure I am missing out something here, but I don't know what.
I would appreciate any suggestion/help.