Ignore erase requests for debugWire targets

This commit is contained in:
Nav
2022-12-18 21:35:10 +00:00
parent 5854b43816
commit e3e37ace4b

View File

@@ -376,6 +376,11 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
void Avr8::eraseMemory(TargetMemoryType memoryType) {
if (memoryType == TargetMemoryType::FLASH) {
if (this->targetConfig->physicalInterface == PhysicalInterface::DEBUG_WIRE) {
// debugWire targets do not need to be erased
return;
}
return this->avr8DebugInterface->eraseProgramMemory();
}