From ad06cdcc758a597de5142cfa8a4e06ac7821adc3 Mon Sep 17 00:00:00 2001 From: Nav Date: Sat, 17 Dec 2022 18:30:51 +0000 Subject: [PATCH] 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. --- .../VendorSpecific/EDBG/AVR/EdbgAvr8Interface.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvr8Interface.cpp b/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvr8Interface.cpp index 0e958032..0bc0be20 100644 --- a/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvr8Interface.cpp +++ b/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvr8Interface.cpp @@ -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: {