Tweaks for MPSoC startup and shutdown code #796

Merged
meggert merged 12 commits from mpsoc-tweaks into main 2023-09-27 11:32:31 +02:00
4 changed files with 130 additions and 73 deletions
Showing only changes of commit ff7e475391 - Show all commits

View File

@@ -1222,9 +1222,13 @@ void PlocMpsocHandler::dataReceived(ActionId_t actionId, const uint8_t* data, ui
} }
void PlocMpsocHandler::completionSuccessfulReceived(ActionId_t actionId) { void PlocMpsocHandler::completionSuccessfulReceived(ActionId_t actionId) {
sif::debug << "recv completion of action " << actionId << std::endl; if (actionId == supv::ACK_REPORT) {
if (actionId != supv::EXE_REPORT) { sif::warning
sif::warning << "PlocMPSoCHandler::completionSuccessfulReceived: Did not expect the action " << "PlocMpsocHandler::completionSuccessfulReceived: Only received ACK report. Consider "
"increasing the MPSoC boot timer."
<< std::endl;
} else if (actionId != supv::EXE_REPORT) {
sif::warning << "PlocMpsocHandler::completionSuccessfulReceived: Did not expect the action "
<< "ID " << actionId << std::endl; << "ID " << actionId << std::endl;
return; return;
} }

View File

@@ -112,7 +112,7 @@ class PlocMpsocHandler : public DeviceHandlerBase, public CommandsActionsIF {
static const uint16_t PACKET_SEQUENCE_COUNT_MASK = 0x3FFF; static const uint16_t PACKET_SEQUENCE_COUNT_MASK = 0x3FFF;
mpsoc::HkReport hkReport; mpsoc::HkReport hkReport;
Countdown mpsocBootTransitionCd = Countdown(5000); Countdown mpsocBootTransitionCd = Countdown(6000);
Countdown supvTransitionCd = Countdown(3000); Countdown supvTransitionCd = Countdown(3000);
MessageQueueIF* eventQueue = nullptr; MessageQueueIF* eventQueue = nullptr;