From 8e9d114343b295dca5cd788207754810ae289cc3 Mon Sep 17 00:00:00 2001 From: Nav Date: Sat, 17 Sep 2022 20:15:53 +0100 Subject: [PATCH] Reset target after GDB programming session --- src/DebugServer/Gdb/AvrGdb/CommandPackets/FlashDone.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/DebugServer/Gdb/AvrGdb/CommandPackets/FlashDone.cpp b/src/DebugServer/Gdb/AvrGdb/CommandPackets/FlashDone.cpp index 87284913..69a8020e 100644 --- a/src/DebugServer/Gdb/AvrGdb/CommandPackets/FlashDone.cpp +++ b/src/DebugServer/Gdb/AvrGdb/CommandPackets/FlashDone.cpp @@ -38,6 +38,9 @@ namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets } targetControllerConsole.disableProgrammingMode(); + Logger::debug("Resetting target"); + targetControllerConsole.resetTarget(); + Logger::info("Target reset"); debugSession.connection.writePacket(OkResponsePacket());