Added eraseProgramMemorySection() function to Avr8 debug interface - to erase XMEGA program memory sections when necessary

This commit is contained in:
Nav
2022-06-03 15:49:12 +01:00
parent 012d987454
commit 1c92a02950
6 changed files with 101 additions and 23 deletions

View File

@@ -8,6 +8,7 @@
#include "src/Targets/Microchip/AVR/TargetSignature.hpp"
#include "src/Targets/Microchip/AVR/AVR8/Family.hpp"
#include "src/Targets/Microchip/AVR/AVR8/PhysicalInterface.hpp"
#include "src/Targets/Microchip/AVR/AVR8/ProgramMemorySection.hpp"
#include "src/Targets/Microchip/AVR/AVR8/TargetParameters.hpp"
#include "src/Targets/TargetState.hpp"
@@ -194,6 +195,13 @@ namespace Bloom::DebugToolDrivers::TargetInterfaces::Microchip::Avr::Avr8
const Targets::TargetMemoryBuffer& buffer
) = 0;
/**
* Should erase a particular program memory section.
*
* @param section
*/
virtual void eraseProgramMemorySection(Targets::Microchip::Avr::Avr8Bit::ProgramMemorySection section) = 0;
/**
* Should obtain the current target state.
*