From 77a52bab962b11af66278900bf88104944081c3e Mon Sep 17 00:00:00 2001 From: Nav Date: Sun, 13 Mar 2022 20:45:52 +0000 Subject: [PATCH] Added link to debugWire article RE enabling the DWEN fuse bit --- src/Targets/Microchip/AVR/AVR8/Avr8.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Targets/Microchip/AVR/AVR8/Avr8.cpp b/src/Targets/Microchip/AVR/AVR8/Avr8.cpp index f5038268..c81248eb 100644 --- a/src/Targets/Microchip/AVR/AVR8/Avr8.cpp +++ b/src/Targets/Microchip/AVR/AVR8/Avr8.cpp @@ -139,7 +139,11 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit } catch (const Exceptions::DebugWirePhysicalInterfaceError& debugWireException) { if (!this->updateDwenFuseBitOnDebugWireFailure) { - throw debugWireException; + throw TargetOperationFailure( + "Failed to activate debugWire physical interface - check target connection and DWEN fuse " + "bit. Bloom can set the DWEN fuse bit automatically. For instructions on enabling this function," + " see " + Paths::homeDomainName() + "/docs/debugging-avr-debugwire" + ); } try {