From a30967a197bc6dec04fefa0631fcf9ce724edd1f Mon Sep 17 00:00:00 2001 From: Cleanroom Laptop L15 Date: Mon, 23 May 2022 15:57:58 +0200 Subject: [PATCH] enable tm cam rpt after receiving ack report --- linux/devices/ploc/PlocMPSoCHandler.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/linux/devices/ploc/PlocMPSoCHandler.cpp b/linux/devices/ploc/PlocMPSoCHandler.cpp index abfae0a3..8be5fd24 100644 --- a/linux/devices/ploc/PlocMPSoCHandler.cpp +++ b/linux/devices/ploc/PlocMPSoCHandler.cpp @@ -285,8 +285,8 @@ void PlocMPSoCHandler::fillCommandAndReplyMap() { this->insertInCommandMap(mpsoc::SET_UART_TX_TRISTATE); this->insertInReplyMap(mpsoc::ACK_REPORT, 3, nullptr, mpsoc::SIZE_ACK_REPORT); this->insertInReplyMap(mpsoc::EXE_REPORT, 50, nullptr, mpsoc::SIZE_EXE_REPORT); - this->insertInReplyMap(mpsoc::TM_MEMORY_READ_REPORT, 50, nullptr, mpsoc::SIZE_TM_MEM_READ_REPORT); - this->insertInReplyMap(mpsoc::TM_CAM_CMD_RPT, 4, nullptr, SpacePacket::PACKET_MAX_SIZE); + this->insertInReplyMap(mpsoc::TM_MEMORY_READ_REPORT, 2, nullptr, mpsoc::SIZE_TM_MEM_READ_REPORT); + this->insertInReplyMap(mpsoc::TM_CAM_CMD_RPT, 50, nullptr, SpacePacket::PACKET_MAX_SIZE); } ReturnValue_t PlocMPSoCHandler::scanForReply(const uint8_t* start, size_t remainingSize, @@ -548,7 +548,7 @@ ReturnValue_t PlocMPSoCHandler::prepareTcCamCmdSend(const uint8_t* commandData, return result; } copyToCommandBuffer(&tcCamCmdSend); - nextReplyId = mpsoc::TM_CAM_CMD_RPT; + nextReplyId = mpsoc::ACK_REPORT; return RETURN_OK; } @@ -789,6 +789,9 @@ void PlocMPSoCHandler::setNextReplyId() { case mpsoc::TC_MEM_READ: nextReplyId = mpsoc::TM_MEMORY_READ_REPORT; break; + case mpsoc::TC_CAM_CMD_SEND: + nextReplyId = mpsoc::TM_CAM_CMD_RPT; + break; default: /* If no telemetry is expected the next reply is always the execution report */ nextReplyId = mpsoc::EXE_REPORT;