Implemented waiting for target stopped event after invoking a target reset via the EDBG AVR8 interface

This commit is contained in:
Nav
2022-04-08 22:16:19 +01:00
parent 99447b7d6d
commit a11e347e2c

View File

@@ -216,6 +216,14 @@ namespace Bloom::DebugToolDrivers::Protocols::CmsisDap::Edbg::Avr
if (response.getResponseId() == Avr8ResponseId::FAILED) { if (response.getResponseId() == Avr8ResponseId::FAILED) {
throw Avr8CommandFailure("AVR8 Reset target command failed", response); throw Avr8CommandFailure("AVR8 Reset target command failed", response);
} }
try {
// Wait for stopped event
this->waitForStoppedEvent();
} catch (const Exception& exception) {
throw Exception("Failed to reset AVR8 target - missing stopped event.");
}
} }
void EdbgAvr8Interface::activate() { void EdbgAvr8Interface::activate() {