Fixed another regression in AVR8 target driver

Program flow control was being attempted before OCDEN fuse bit management
This commit is contained in:
Nav
2025-02-22 19:47:42 +00:00
parent 6680ec4ef4
commit 153dfebca9

View File

@@ -196,9 +196,6 @@ namespace Targets::Microchip::Avr8
this->avr8DebugInterface->activate(); this->avr8DebugInterface->activate();
} }
this->stop();
this->reset();
if ( if (
this->targetConfig.physicalInterface == TargetPhysicalInterface::JTAG this->targetConfig.physicalInterface == TargetPhysicalInterface::JTAG
&& this->targetConfig.manageOcdenFuseBit && this->targetConfig.manageOcdenFuseBit
@@ -207,6 +204,9 @@ namespace Targets::Microchip::Avr8
this->updateOcdenFuseBit(true); this->updateOcdenFuseBit(true);
} }
this->stop();
this->reset();
this->activated = true; this->activated = true;
if (this->targetConfig.signatureVerification) { if (this->targetConfig.signatureVerification) {