Renamed nvmBaseAddress to nvmModuleBaseAddress
This commit is contained in:
@@ -1023,7 +1023,7 @@ namespace Bloom::DebugToolDrivers::Protocols::CmsisDap::Edbg::Avr
|
||||
throw DeviceInitializationFailure("Missing required parameter: EEPROM_PAGE_SIZE");
|
||||
}
|
||||
|
||||
if (!this->targetParameters.nvmBaseAddress.has_value()) {
|
||||
if (!this->targetParameters.nvmModuleBaseAddress.has_value()) {
|
||||
throw DeviceInitializationFailure("Missing required parameter: NVM_BASE");
|
||||
}
|
||||
|
||||
@@ -1108,7 +1108,8 @@ namespace Bloom::DebugToolDrivers::Protocols::CmsisDap::Edbg::Avr
|
||||
Logger::debug("Setting NVM_BASE AVR8 parameter");
|
||||
this->setParameter(
|
||||
Avr8EdbgParameters::DEVICE_XMEGA_NVM_BASE,
|
||||
this->targetParameters.nvmBaseAddress.value()
|
||||
this->targetParameters.nvmModuleBaseAddress.value()
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1172,11 +1173,11 @@ namespace Bloom::DebugToolDrivers::Protocols::CmsisDap::Edbg::Avr
|
||||
);
|
||||
}
|
||||
|
||||
if (this->targetParameters.nvmBaseAddress.has_value()) {
|
||||
if (this->targetParameters.nvmModuleBaseAddress.has_value()) {
|
||||
Logger::debug("Setting DEVICE_UPDI_NVMCTRL_ADDR AVR8 parameter");
|
||||
this->setParameter(
|
||||
Avr8EdbgParameters::DEVICE_UPDI_NVMCTRL_ADDR,
|
||||
this->targetParameters.nvmBaseAddress.value()
|
||||
this->targetParameters.nvmModuleBaseAddress.value()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1226,7 +1226,7 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit::TargetDescription
|
||||
const auto& nvmInstance = nvmModule.instancesMappedByName.at("nvm");
|
||||
|
||||
if (nvmInstance.registerGroupsMappedByName.contains("nvm")) {
|
||||
targetParameters.nvmBaseAddress = nvmInstance.registerGroupsMappedByName.at("nvm").offset;
|
||||
targetParameters.nvmModuleBaseAddress = nvmInstance.registerGroupsMappedByName.at("nvm").offset;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1245,7 +1245,7 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit::TargetDescription
|
||||
const auto& nvmCtrlInstance = nvmCtrlModule.instancesMappedByName.at("nvmctrl");
|
||||
|
||||
if (nvmCtrlInstance.registerGroupsMappedByName.contains("nvmctrl")) {
|
||||
targetParameters.nvmBaseAddress = nvmCtrlInstance.registerGroupsMappedByName.at(
|
||||
targetParameters.nvmModuleBaseAddress = nvmCtrlInstance.registerGroupsMappedByName.at(
|
||||
"nvmctrl"
|
||||
).offset;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
|
||||
std::optional<std::uint32_t> lockRegistersPdiOffset;
|
||||
std::optional<std::uint32_t> userSignaturesPdiOffset;
|
||||
std::optional<std::uint32_t> productSignaturesPdiOffset;
|
||||
std::optional<std::uint16_t> nvmBaseAddress;
|
||||
std::optional<std::uint16_t> nvmModuleBaseAddress;
|
||||
|
||||
// UPDI specific target params
|
||||
std::optional<std::uint16_t> ocdModuleAddress;
|
||||
|
||||
Reference in New Issue
Block a user