Included FLASH memory descriptor in AVR8 target descriptor
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user