bugfixes in tc packaging classes
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
parent
ad3bdbcf96
commit
c85035c62e
@ -1069,9 +1069,12 @@ class CheckMemory : public ploc::SpTcBase {
|
|||||||
size_t serLen = 0;
|
size_t serLen = 0;
|
||||||
SerializeAdapter::serialize(&memoryId, &data, &serLen, sizeof(memoryId),
|
SerializeAdapter::serialize(&memoryId, &data, &serLen, sizeof(memoryId),
|
||||||
SerializeIF::Endianness::BIG);
|
SerializeIF::Endianness::BIG);
|
||||||
|
serLen = 0;
|
||||||
SerializeAdapter::serialize(&n, &data, &serLen, sizeof(n), SerializeIF::Endianness::BIG);
|
SerializeAdapter::serialize(&n, &data, &serLen, sizeof(n), SerializeIF::Endianness::BIG);
|
||||||
|
serLen = 0;
|
||||||
SerializeAdapter::serialize(&startAddress, &data, &serLen, sizeof(startAddress),
|
SerializeAdapter::serialize(&startAddress, &data, &serLen, sizeof(startAddress),
|
||||||
SerializeIF::Endianness::BIG);
|
SerializeIF::Endianness::BIG);
|
||||||
|
serLen = 0;
|
||||||
SerializeAdapter::serialize(&length, &data, &serLen, sizeof(length),
|
SerializeAdapter::serialize(&length, &data, &serLen, sizeof(length),
|
||||||
SerializeIF::Endianness::BIG);
|
SerializeIF::Endianness::BIG);
|
||||||
}
|
}
|
||||||
@ -1123,10 +1126,13 @@ class WriteMemory : public ploc::SpTcBase {
|
|||||||
uint8_t* data = payloadStart;
|
uint8_t* data = payloadStart;
|
||||||
SerializeAdapter::serialize(&memoryId, &data, &serializedSize, sizeof(memoryId),
|
SerializeAdapter::serialize(&memoryId, &data, &serializedSize, sizeof(memoryId),
|
||||||
SerializeIF::Endianness::BIG);
|
SerializeIF::Endianness::BIG);
|
||||||
|
serializedSize = 0;
|
||||||
SerializeAdapter::serialize(&n, &data, &serializedSize, sizeof(n),
|
SerializeAdapter::serialize(&n, &data, &serializedSize, sizeof(n),
|
||||||
SerializeIF::Endianness::BIG);
|
SerializeIF::Endianness::BIG);
|
||||||
|
serializedSize = 0;
|
||||||
SerializeAdapter::serialize(&startAddr, &data, &serializedSize, sizeof(startAddr),
|
SerializeAdapter::serialize(&startAddr, &data, &serializedSize, sizeof(startAddr),
|
||||||
SerializeIF::Endianness::BIG);
|
SerializeIF::Endianness::BIG);
|
||||||
|
serializedSize = 0;
|
||||||
SerializeAdapter::serialize(&updateDataLen, &data, &serializedSize, sizeof(updateDataLen),
|
SerializeAdapter::serialize(&updateDataLen, &data, &serializedSize, sizeof(updateDataLen),
|
||||||
SerializeIF::Endianness::BIG);
|
SerializeIF::Endianness::BIG);
|
||||||
if (updateDataLen % 2 != 0) {
|
if (updateDataLen % 2 != 0) {
|
||||||
@ -1148,7 +1154,7 @@ class WriteMemory : public ploc::SpTcBase {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This class can be used to package the update available or update verify command.
|
* @brief This class can be used to package erase memory command
|
||||||
*/
|
*/
|
||||||
class EraseMemory : public ploc::SpTcBase {
|
class EraseMemory : public ploc::SpTcBase {
|
||||||
public:
|
public:
|
||||||
@ -1180,6 +1186,7 @@ class EraseMemory : public ploc::SpTcBase {
|
|||||||
uint8_t* data = payloadStart;
|
uint8_t* data = payloadStart;
|
||||||
SerializeAdapter::serialize(&memoryId, &data, &serializedSize, sizeof(memoryId),
|
SerializeAdapter::serialize(&memoryId, &data, &serializedSize, sizeof(memoryId),
|
||||||
SerializeIF::Endianness::BIG);
|
SerializeIF::Endianness::BIG);
|
||||||
|
serializedSize = 0;
|
||||||
SerializeAdapter::serialize(&n, &data, &serializedSize, sizeof(n),
|
SerializeAdapter::serialize(&n, &data, &serializedSize, sizeof(n),
|
||||||
SerializeIF::Endianness::BIG);
|
SerializeIF::Endianness::BIG);
|
||||||
serializedSize = 0;
|
serializedSize = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user