Moved memory segment TDF validation to AVR8 validation class

This commit is contained in:
Nav
2024-03-25 18:55:03 +00:00
parent 57f56e634e
commit cf99e3e6fa
2 changed files with 22 additions and 12 deletions

View File

@@ -81,18 +81,6 @@ class ValidationService
$processedAddressSpaceKeys[] = $addressSpace->key;
}
if ($tdf->getMemorySegmentsFromAnyAddressSpace('internal_program_memory') === null) {
$failures[] = 'Missing "internal_program_memory" memory segment';
}
if ($tdf->getMemorySegmentsFromAnyAddressSpace('internal_ram') === null) {
$failures[] = 'Missing "internal_ram" memory segment';
}
if ($tdf->getMemorySegmentsFromAnyAddressSpace('internal_eeprom') === null) {
$failures[] = 'Missing "internal_eeprom" memory segment';
}
if (empty($tdf->modules)) {
$failures[] = 'Missing modules';
}