Enabled programming mode in response to GDB's vFlashErase and vFlashWrite packets

This commit is contained in:
Nav
2022-06-05 16:14:14 +01:00
parent cfe533e5db
commit 9b8d4f054b
2 changed files with 4 additions and 0 deletions

View File

@@ -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,

View File

@@ -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,