Enabled programming mode in response to GDB's vFlashErase and vFlashWrite packets
This commit is contained in:
@@ -52,6 +52,8 @@ namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
|
|||||||
Logger::debug("Handling FlashErase packet");
|
Logger::debug("Handling FlashErase packet");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
targetControllerConsole.enableProgrammingMode();
|
||||||
|
|
||||||
targetControllerConsole.writeMemory(
|
targetControllerConsole.writeMemory(
|
||||||
Targets::TargetMemoryType::FLASH,
|
Targets::TargetMemoryType::FLASH,
|
||||||
this->startAddress,
|
this->startAddress,
|
||||||
|
|||||||
@@ -52,6 +52,8 @@ namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
|
|||||||
Logger::debug("Handling FlashWrite packet");
|
Logger::debug("Handling FlashWrite packet");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
targetControllerConsole.enableProgrammingMode();
|
||||||
|
|
||||||
targetControllerConsole.writeMemory(
|
targetControllerConsole.writeMemory(
|
||||||
Targets::TargetMemoryType::FLASH,
|
Targets::TargetMemoryType::FLASH,
|
||||||
this->startAddress,
|
this->startAddress,
|
||||||
|
|||||||
Reference in New Issue
Block a user