JTAG "died" - but why?

Hello,

It seems to be not only my problem:

If I turn off power from the JTAG when it is still in use for debugging (so the stop button in AVR-Studio had not been pressed) then it occurs that it is killed and the user needs to reupdate the Interface.

So the code inside is destroyed by the AVR-Studio.

It really bugs me!

Has anyone found a way how to protect the interface?

Is there anyone who knows a reason for the error?

with regards

Simon