From 153dfebca90506c62e3044f74e4f0fc1201df802 Mon Sep 17 00:00:00 2001 From: Nav Date: Sat, 22 Feb 2025 19:47:42 +0000 Subject: [PATCH] Fixed another regression in AVR8 target driver Program flow control was being attempted before OCDEN fuse bit management --- src/Targets/Microchip/Avr8/Avr8.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {