Fixed bug with some debug tools (PICkit4 and Snap) losing control of the target after disabling programming mdoe

This commit is contained in:
Nav
2022-06-05 21:04:08 +01:00
parent ec987d430e
commit fbf141c7ef

View File

@@ -789,6 +789,14 @@ namespace Bloom::DebugToolDrivers::Protocols::CmsisDap::Edbg::Avr
}
this->programmingModeEnabled = false;
if (this->configVariant == Avr8ConfigVariant::MEGAJTAG) {
this->deactivatePhysical();
this->setTargetParameters(this->targetParameters);
this->targetAttached = false;
this->activate();
this->stop();
}
}
std::map<Family, std::map<PhysicalInterface, Avr8ConfigVariant>>