diff --git a/src/Targets/Microchip/AVR/AVR8/Avr8.cpp b/src/Targets/Microchip/AVR/AVR8/Avr8.cpp index 688ecac9..b44ab97c 100644 --- a/src/Targets/Microchip/AVR/AVR8/Avr8.cpp +++ b/src/Targets/Microchip/AVR/AVR8/Avr8.cpp @@ -240,6 +240,10 @@ namespace Targets::Microchip::Avr::Avr8Bit void Avr8::deactivate() { try { + if (this->avr8DebugInterface == nullptr) { + return; + } + this->stop(); this->clearAllBreakpoints();