diff --git a/src/Targets/Microchip/Avr8/Avr8.cpp b/src/Targets/Microchip/Avr8/Avr8.cpp index a06e3732..eb65bcb6 100644 --- a/src/Targets/Microchip/Avr8/Avr8.cpp +++ b/src/Targets/Microchip/Avr8/Avr8.cpp @@ -196,9 +196,6 @@ namespace Targets::Microchip::Avr8 this->avr8DebugInterface->activate(); } - this->stop(); - this->reset(); - if ( this->targetConfig.physicalInterface == TargetPhysicalInterface::JTAG && this->targetConfig.manageOcdenFuseBit @@ -207,6 +204,9 @@ namespace Targets::Microchip::Avr8 this->updateOcdenFuseBit(true); } + this->stop(); + this->reset(); + this->activated = true; if (this->targetConfig.signatureVerification) {