From b5d6e8d88b6ffc79fa7f0f0eafd9da974419e6dc Mon Sep 17 00:00:00 2001 From: Nav Date: Thu, 2 Sep 2021 21:33:38 +0100 Subject: [PATCH] Some tidying in the AVR8 EDBG driver --- .../CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvr8Interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 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 66746444..9252b3f4 100644 --- a/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvr8Interface.cpp +++ b/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvr8Interface.cpp @@ -1118,7 +1118,7 @@ TargetMemoryBuffer EdbgAvr8Interface::readMemory( void EdbgAvr8Interface::writeMemory(Avr8MemoryType type, std::uint32_t address, const TargetMemoryBuffer& buffer) { if (type == Avr8MemoryType::FLASH_PAGE) { // TODO: Implement support for writing to flash - throw Exception("Cannot write to flash"); + throw Exception("Writing to flash memory is not supported."); } auto commandFrame = CommandFrames::Avr8Generic::WriteMemory(); @@ -1238,7 +1238,7 @@ TargetRegisters EdbgAvr8Interface::readRegisters(const TargetRegisterDescriptors ); } - auto flatMemoryBuffer = this->readMemory( + const auto flatMemoryBuffer = this->readMemory( memoryType, startAddress, bufferSize,