Fixed bug where Bloom wasn't managing the DWEN fuse bit on some development boards.
This commit is contained in:
@@ -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. "
|
||||||
|
|||||||
Reference in New Issue
Block a user