Included FLASH memory descriptor in AVR8 target descriptor

This commit is contained in:
Nav
2022-05-04 19:48:41 +01:00
parent 74dd12ddea
commit cfb1152423

View File

@@ -676,6 +676,7 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
void Avr8::loadTargetMemoryDescriptors() {
const auto ramStartAddress = this->targetParameters->ramStartAddress.value();
const auto flashStartAddress = this->targetParameters->flashStartAddress.value();
this->targetMemoryDescriptorsByType.insert(std::pair(
TargetMemoryType::RAM,
@@ -688,6 +689,17 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
)
));
this->targetMemoryDescriptorsByType.insert(std::pair(
TargetMemoryType::FLASH,
TargetMemoryDescriptor(
TargetMemoryType::FLASH,
TargetMemoryAddressRange(
flashStartAddress,
flashStartAddress + this->targetParameters->flashSize.value() - 1
)
)
));
if (this->targetParameters->eepromStartAddress.has_value() && this->targetParameters->eepromSize.has_value()) {
const auto eepromStartAddress = this->targetParameters->eepromStartAddress.value();