This commit is contained in:
Nav
2022-12-30 23:28:05 +00:00
parent f41e60d0af
commit 7aa1639df2

View File

@@ -54,10 +54,10 @@ namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
try { try {
targetControllerService.enableProgrammingMode(); targetControllerService.enableProgrammingMode();
Logger::warning("Erasing entire chip, in preparation for programming"); Logger::warning("Erasing program memory, in preparation for programming");
// We don't erase a specific address range - we just erase the entire program memory. // We don't erase a specific address range - we just erase the entire program memory.
targetControllerService.eraseMemory(Targets::TargetMemoryType::FLASH); targetControllerService.eraseMemory(debugSession.gdbTargetDescriptor.targetDescriptor.programMemoryType);
debugSession.connection.writePacket(OkResponsePacket()); debugSession.connection.writePacket(OkResponsePacket());