diff --git a/src/DebugServer/Gdb/AvrGdb/CommandPackets/FlashErase.cpp b/src/DebugServer/Gdb/AvrGdb/CommandPackets/FlashErase.cpp index 4ef10da9..cdf42090 100644 --- a/src/DebugServer/Gdb/AvrGdb/CommandPackets/FlashErase.cpp +++ b/src/DebugServer/Gdb/AvrGdb/CommandPackets/FlashErase.cpp @@ -52,6 +52,8 @@ namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets Logger::debug("Handling FlashErase packet"); try { + targetControllerConsole.enableProgrammingMode(); + targetControllerConsole.writeMemory( Targets::TargetMemoryType::FLASH, this->startAddress, diff --git a/src/DebugServer/Gdb/AvrGdb/CommandPackets/FlashWrite.cpp b/src/DebugServer/Gdb/AvrGdb/CommandPackets/FlashWrite.cpp index 606537e9..e8a0dd17 100644 --- a/src/DebugServer/Gdb/AvrGdb/CommandPackets/FlashWrite.cpp +++ b/src/DebugServer/Gdb/AvrGdb/CommandPackets/FlashWrite.cpp @@ -52,6 +52,8 @@ namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets Logger::debug("Handling FlashWrite packet"); try { + targetControllerConsole.enableProgrammingMode(); + targetControllerConsole.writeMemory( Targets::TargetMemoryType::FLASH, this->startAddress,