Can manage to read device ID from an AVR only once
Atmel Studio 7 and Atmel-ICE

This should help:


Debug -&gt; Attach to Target or Debug -&gt; STart Debugging and Break
Debug -&gt; Disable debugWire and Close


and then try again to connect.