Removed the requirement of the max memory access limit being greater than the target's flash page size.

It's no longer needed as we've stopped enforcing the limit for memory types that require page alignment.
This commit is contained in:
Nav
2022-12-17 18:30:51 +00:00
parent 92860e87de
commit ad06cdcc75

View File

@@ -124,20 +124,6 @@ namespace Bloom::DebugToolDrivers::Protocols::CmsisDap::Edbg::Avr
this->configVariant = configVariant.value();
}
if (
this->configVariant != Avr8ConfigVariant::XMEGA
&& this->configVariant != Avr8ConfigVariant::UPDI
&& config.flashPageSize.has_value() && this->maximumMemoryAccessSizePerRequest.has_value()
&& config.flashPageSize > this->maximumMemoryAccessSizePerRequest
) {
throw DeviceInitializationFailure("Flash page size for target ("
+ std::to_string(config.flashPageSize.value())
+ " bytes) exceeds maximum memory access size for EdbgAvr8Interface ("
+ std::to_string(this->maximumMemoryAccessSizePerRequest.value())
+ " bytes)."
);
}
switch (this->configVariant) {
case Avr8ConfigVariant::DEBUG_WIRE:
case Avr8ConfigVariant::MEGAJTAG: {