execution status code wip
This commit is contained in:
parent
09fc8babc4
commit
73c653d21d
@ -1446,7 +1446,31 @@ class ExecutionReport : public VerificationReport {
|
||||
GPIO_HIGH = 0x11,
|
||||
GPIO_LOW = 0x12,
|
||||
TEST_PASSED = 0x13,
|
||||
TEST_FAILED = 0x14
|
||||
TEST_FAILED = 0x14,
|
||||
NOTHING_TODO = 0x100,
|
||||
POWER_FAULT = 0x101,
|
||||
INVALID_LENGTH = 0x102,
|
||||
OUT_OF_RANGE = 0x103,
|
||||
OUT_OF_HEAP_MEMORY = 0x104,
|
||||
INVALID_STATE_TRANSITION = 0x105,
|
||||
MPSOC_BOOT_FAILED = 0x106,
|
||||
SP_NOT_AVAILABLE = 0x200,
|
||||
SP_DATA_INSUFFICIENT = 0x201,
|
||||
MPSOC_NOT_IN_RESET = 0x202,
|
||||
FLASH_INIT_FAILED = 0x203,
|
||||
FLASH_ERASE_FAILED = 0x204,
|
||||
FLASH_WRITE_FAILED = 0x205,
|
||||
FLASH_VERIFY_FAILED = 0x206,
|
||||
CANNOT_ACCESS_TM = 0x207,
|
||||
CANNOT_SEND_TM = 0x208,
|
||||
PG_LOW = 0x300,
|
||||
PG_5V_LOW = 0x301,
|
||||
PG_0V85_LOW = 0x302,
|
||||
PG_1V8_LOW = 0x303,
|
||||
PG_MISC_LOW = 0x304,
|
||||
PG_3V3_LOW = 0x305,
|
||||
PG__MB_VAIO_LOW = 0x306,
|
||||
PG_MB_MPSOCIO_LOW = 0x307
|
||||
};
|
||||
|
||||
void printStatusInformation() {
|
||||
@ -1536,6 +1560,41 @@ class ExecutionReport : public VerificationReport {
|
||||
sif::warning << "Supervisor execution report status: Test failed" << std::endl;
|
||||
break;
|
||||
}
|
||||
case StatusCode::NOTHING_TODO: {
|
||||
sif::warning
|
||||
<< "Supervisor execution report status: Nothing todo, not an error but a warning"
|
||||
<< std::endl;
|
||||
break;
|
||||
}
|
||||
case StatusCode::POWER_FAULT: {
|
||||
sif::warning << "Supervisor execution report status: Power fault" << std::endl;
|
||||
break;
|
||||
}
|
||||
case StatusCode::INVALID_LENGTH: {
|
||||
sif::warning << "Supervisor execution report status: Invalid length" << std::endl;
|
||||
break;
|
||||
}
|
||||
case StatusCode::OUT_OF_RANGE: {
|
||||
sif::warning
|
||||
<< "Supervisor execution report status: Out of range, lenght check of parameter failed"
|
||||
<< std::endl;
|
||||
break;
|
||||
}
|
||||
case StatusCode::OUT_OF_HEAP_MEMORY: {
|
||||
sif::warning
|
||||
<< "Supervisor execution report status: Out of heap memory" << std::endl;
|
||||
break;
|
||||
}
|
||||
case StatusCode::INVALID_STATE_TRANSITION: {
|
||||
sif::warning
|
||||
<< "Supervisor execution report status: Invalid state transition" << std::endl;
|
||||
break;
|
||||
}
|
||||
case StatusCode::MPSOC_BOOT_FAILED: {
|
||||
sif::warning
|
||||
<< "Supervisor execution report status: MPSoC boot failed" << std::endl;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
sif::warning << "ExecutionReport::printStatusInformation: Invalid status code: 0x"
|
||||
<< std::hex << static_cast<uint16_t>(statusCode) << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user