Fixed bug where Bloom wasn't managing the DWEN fuse bit on some development boards.

This commit is contained in:
Nav
2023-07-18 21:28:45 +01:00
parent d083f27416
commit ab8693b1e0

View File

@@ -266,8 +266,12 @@ namespace Bloom::DebugToolDrivers::Protocols::CmsisDap::Edbg::Avr
this->activatePhysical(); this->activatePhysical();
} catch (const Avr8CommandFailure& activationException) { } catch (const Avr8CommandFailure& activationException) {
if (this->targetConfig->physicalInterface == PhysicalInterface::DEBUG_WIRE if (
&& activationException.code == Avr8CommandFailureCode::DEBUGWIRE_PHYSICAL_ERROR this->targetConfig->physicalInterface == PhysicalInterface::DEBUG_WIRE
&& (
activationException.code == Avr8CommandFailureCode::DEBUGWIRE_PHYSICAL_ERROR
|| activationException.code == Avr8CommandFailureCode::FAILED_TO_ENABLE_OCD
)
) { ) {
throw DebugWirePhysicalInterfaceError( throw DebugWirePhysicalInterfaceError(
"Failed to activate the debugWire physical interface - check target connection. " "Failed to activate the debugWire physical interface - check target connection. "