I am not new to programming. However possibly not as experienced as you all.
I am programming my ATMEL328p (on a Nano Boar) with an ICE using the ISP header. Before programming, I am able to read the device signature and fuses etc. without an issue. The programming is successful and I am able to verify the code.
However, after programming if I remove the power and then again reconnect via the ICE (I am using Atmel Studio). Then it says
Timestamp: 2020-02-08 16:48:17.922
ModuleName: TCF (TCF command: Device:startSession failed.)
Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xc0, expected 0x00 (Command has failed to execute on the tool)"
I have bricked now almost 5 Nanos this way. I never had a problem with this earlier.
Can someone help. I am much obliged.