v1.12.0 #269

Merged
muellerr merged 493 commits from develop into main 2022-07-04 11:19:05 +02:00
Showing only changes of commit 7afb8e9070 - Show all commits

View File

@ -1304,8 +1304,8 @@ class VerificationReport : public TmPacket {
uint16_t refApid = 0; uint16_t refApid = 0;
size_t size = 0; size_t size = 0;
uint8_t* refApidPtr = this->getPacketData(); uint8_t* refApidPtr = this->getPacketData();
ReturnValue_t result = SerializeAdapter::deSerialize(&refApid, refApidPtr, &size, ReturnValue_t result =
SerializeIF::Endianness::BIG); SerializeAdapter::deSerialize(&refApid, refApidPtr, &size, SerializeIF::Endianness::BIG);
if (result != HasReturnvaluesIF::RETURN_OK) { if (result != HasReturnvaluesIF::RETURN_OK) {
sif::debug << "ExecutionReport: Failed to deserialize reference APID field" << std::endl; sif::debug << "ExecutionReport: Failed to deserialize reference APID field" << std::endl;
return result; return result;
@ -1378,8 +1378,8 @@ class AcknowledgmentReport : public VerificationReport {
break; break;
} }
case StatusCode::DEFAULT_NAK: { case StatusCode::DEFAULT_NAK: {
sif::warning << "Supervisor acknowledgment report status: Default code for nak" << sif::warning << "Supervisor acknowledgment report status: Default code for nak"
std::endl; << std::endl;
break; break;
} }
case StatusCode::ROUTE_PACKET: { case StatusCode::ROUTE_PACKET: {
@ -1456,20 +1456,21 @@ class ExecutionReport : public VerificationReport {
MPSOC_BOOT_FAILED = 0x106, MPSOC_BOOT_FAILED = 0x106,
SP_NOT_AVAILABLE = 0x200, SP_NOT_AVAILABLE = 0x200,
SP_DATA_INSUFFICIENT = 0x201, SP_DATA_INSUFFICIENT = 0x201,
MPSOC_NOT_IN_RESET = 0x202, SP_MEMORY_ID_INVALID = 0x202,
FLASH_INIT_FAILED = 0x203, MPSOC_NOT_IN_RESET = 0x203,
FLASH_ERASE_FAILED = 0x204, FLASH_INIT_FAILED = 0x204,
FLASH_WRITE_FAILED = 0x205, FLASH_ERASE_FAILED = 0x205,
FLASH_VERIFY_FAILED = 0x206, FLASH_WRITE_FAILED = 0x206,
CANNOT_ACCESS_TM = 0x207, FLASH_VERIFY_FAILED = 0x207,
CANNOT_SEND_TM = 0x208, CANNOT_ACCESS_TM = 0x208,
CANNOT_SEND_TM = 0x209,
PG_LOW = 0x300, PG_LOW = 0x300,
PG_5V_LOW = 0x301, PG_5V_LOW = 0x301,
PG_0V85_LOW = 0x302, PG_0V85_LOW = 0x302,
PG_1V8_LOW = 0x303, PG_1V8_LOW = 0x303,
PG_MISC_LOW = 0x304, PG_MISC_LOW = 0x304,
PG_3V3_LOW = 0x305, PG_3V3_LOW = 0x305,
PG__MB_VAIO_LOW = 0x306, PG_MB_VAIO_LOW = 0x306,
PG_MB_MPSOCIO_LOW = 0x307 PG_MB_MPSOCIO_LOW = 0x307
}; };
@ -1581,36 +1582,95 @@ class ExecutionReport : public VerificationReport {
break; break;
} }
case StatusCode::OUT_OF_HEAP_MEMORY: { case StatusCode::OUT_OF_HEAP_MEMORY: {
sif::warning sif::warning << "Supervisor execution report status: Out of heap memory" << std::endl;
<< "Supervisor execution report status: Out of heap memory" << std::endl;
break; break;
} }
case StatusCode::INVALID_STATE_TRANSITION: { case StatusCode::INVALID_STATE_TRANSITION: {
sif::warning sif::warning << "Supervisor execution report status: Invalid state transition" << std::endl;
<< "Supervisor execution report status: Invalid state transition" << std::endl;
break; break;
} }
case StatusCode::MPSOC_BOOT_FAILED: { case StatusCode::MPSOC_BOOT_FAILED: {
sif::warning sif::warning << "Supervisor execution report status: MPSoC boot failed" << std::endl;
<< "Supervisor execution report status: MPSoC boot failed" << std::endl;
break; break;
} }
case StatusCode::SP_NOT_AVAILABLE: { case StatusCode::SP_NOT_AVAILABLE: {
sif::warning sif::warning << "Supervisor execution report status: SP not available" << std::endl;
<< "Supervisor execution report status: SP not available" << std::endl; break;
break; }
}
case StatusCode::SP_DATA_INSUFFICIENT: { case StatusCode::SP_DATA_INSUFFICIENT: {
sif::warning sif::warning << "Supervisor execution report status: SP data insufficient" << std::endl;
<< "Supervisor execution report status: SP data insufficient" << std::endl; break;
break; }
} case StatusCode::SP_MEMORY_ID_INVALID: {
sif::warning << "Supervisor execution report status: SP data insufficient" << std::endl;
break;
}
case StatusCode::MPSOC_NOT_IN_RESET: {
sif::warning << "Supervisor execution report status: MPSoC not in reset" << std::endl;
break;
}
case StatusCode::FLASH_INIT_FAILED: {
sif::warning << "Supervisor execution report status: Flash init failed" << std::endl;
break;
}
case StatusCode::FLASH_ERASE_FAILED: {
sif::warning << "Supervisor execution report status: Flash erase failed" << std::endl;
break;
}
case StatusCode::FLASH_WRITE_FAILED: {
sif::warning << "Supervisor execution report status: Flash write failed" << std::endl;
break;
}
case StatusCode::FLASH_VERIFY_FAILED: {
sif::warning << "Supervisor execution report status: Flash verify failed" << std::endl;
break;
}
case StatusCode::CANNOT_ACCESS_TM: {
sif::warning << "Supervisor execution report status: Can not access tm" << std::endl;
break;
}
case StatusCode::CANNOT_SEND_TM: {
sif::warning << "Supervisor execution report status: Can not access tm" << std::endl;
break;
}
case StatusCode::PG_LOW: {
sif::warning << "Supervisor execution report status: PG low" << std::endl;
break;
}
case StatusCode::PG_5V_LOW: {
sif::warning << "Supervisor execution report status: PG 5V low" << std::endl;
break;
}
case StatusCode::PG_0V85_LOW: {
sif::warning << "Supervisor execution report status: PG 0V85 low" << std::endl;
break;
}
case StatusCode::PG_1V8_LOW: {
sif::warning << "Supervisor execution report status: PG 1V8 low" << std::endl;
break;
}
case StatusCode::PG_MISC_LOW: {
sif::warning << "Supervisor execution report status: PG misc low" << std::endl;
break;
}
case StatusCode::PG_3V3_LOW: {
sif::warning << "Supervisor execution report status: PG 3V3 low" << std::endl;
break;
}
case StatusCode::PG_MB_VAIO_LOW: {
sif::warning << "Supervisor execution report status: PG mb vaio low" << std::endl;
break;
}
case StatusCode::PG_MB_MPSOCIO_LOW: {
sif::warning << "Supervisor execution report status: PG mb mpsocio low" << std::endl;
break;
}
default: default:
sif::warning << "ExecutionReport::printStatusInformation: Invalid status code: 0x" sif::warning << "ExecutionReport::printStatusInformation: Invalid status code: 0x"
<< std::hex << static_cast<uint16_t>(statusCode) << std::endl; << std::hex << static_cast<uint16_t>(statusCode) << std::endl;
break; break;
}
} }
}
}; };
/** /**