PLOC Handler Improvements #252

Merged
muellerr merged 19 commits from meier/ploc into develop 2022-05-16 15:12:29 +02:00
2 changed files with 13 additions and 3 deletions
Showing only changes of commit 9db58210b8 - Show all commits

View File

@ -1460,7 +1460,9 @@ class ExecutionReport : public VerificationReport {
OUT_OF_RANGE = 0x103, OUT_OF_RANGE = 0x103,
OUT_OF_HEAP_MEMORY = 0x104, OUT_OF_HEAP_MEMORY = 0x104,
INVALID_STATE_TRANSITION = 0x105, INVALID_STATE_TRANSITION = 0x105,
MPSOC_BOOT_FAILED = 0x106, MPSOC_ALREADY_BOOTING = 0x106,
MPSOC_ALREADY_OPERATIONAL = 0x107,
MPSOC_BOOT_FAILED = 0x108,
SP_NOT_AVAILABLE = 0x200, SP_NOT_AVAILABLE = 0x200,
SP_DATA_INSUFFICIENT = 0x201, SP_DATA_INSUFFICIENT = 0x201,
SP_MEMORY_ID_INVALID = 0x202, SP_MEMORY_ID_INVALID = 0x202,
@ -1594,6 +1596,14 @@ class ExecutionReport : public VerificationReport {
sif::warning << STATUS_PRINTOUT_PREFIX << "Invalid state transition" << std::endl; sif::warning << STATUS_PRINTOUT_PREFIX << "Invalid state transition" << std::endl;
break; break;
} }
case StatusCode::MPSOC_ALREADY_BOOTING: {
sif::warning << STATUS_PRINTOUT_PREFIX << "MPSoC already booting" << std::endl;
break;
}
case StatusCode::MPSOC_ALREADY_OPERATIONAL: {
sif::warning << STATUS_PRINTOUT_PREFIX << "MPSoC already operational" << std::endl;
break;
}
case StatusCode::MPSOC_BOOT_FAILED: { case StatusCode::MPSOC_BOOT_FAILED: {
sif::warning << STATUS_PRINTOUT_PREFIX << "MPSoC boot failed" << std::endl; sif::warning << STATUS_PRINTOUT_PREFIX << "MPSoC boot failed" << std::endl;
break; break;

View File

@ -1062,8 +1062,8 @@ ReturnValue_t PlocSupervisorHandler::handleBootStatusReport(const uint8_t* data)
nextReplyId = supv::EXE_REPORT; nextReplyId = supv::EXE_REPORT;
#if OBSW_VERBOSE_LEVEL >= 1 && OBSW_DEBUG_PLOC_SUPERVISOR == 1 #if OBSW_VERBOSE_LEVEL >= 1 && OBSW_DEBUG_PLOC_SUPERVISOR == 1
sif::info << "PlocSupervisorHandler::handleBootStatusReport: SoC State (0 - off, 1 - booting, 3 " sif::info << "PlocSupervisorHandler::handleBootStatusReport: SoC State (0 - off, 1 - booting, 2 - Update, 3 "
"- operating, 4 - Shutdown): " "- operating, 4 - Shutdown, 5 - Reset): "
<< static_cast<unsigned int>(bootStatusReport.socState.value) << std::endl; << static_cast<unsigned int>(bootStatusReport.socState.value) << std::endl;
sif::info << "PlocSupervisorHandler::handleBootStatusReport: Power Cycles: " sif::info << "PlocSupervisorHandler::handleBootStatusReport: Power Cycles: "
<< static_cast<unsigned int>(bootStatusReport.powerCycles.value) << std::endl; << static_cast<unsigned int>(bootStatusReport.powerCycles.value) << std::endl;