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:
@@ -124,20 +124,6 @@ namespace Bloom::DebugToolDrivers::Protocols::CmsisDap::Edbg::Avr
|
|||||||
this->configVariant = configVariant.value();
|
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) {
|
switch (this->configVariant) {
|
||||||
case Avr8ConfigVariant::DEBUG_WIRE:
|
case Avr8ConfigVariant::DEBUG_WIRE:
|
||||||
case Avr8ConfigVariant::MEGAJTAG: {
|
case Avr8ConfigVariant::MEGAJTAG: {
|
||||||
|
|||||||
Reference in New Issue
Block a user