aboutsummaryrefslogtreecommitdiff
path: root/applications/message_handler/test/message_client.cpp
diff options
context:
space:
mode:
authorDavide Grohmann <davide.grohmann@arm.com>2022-06-15 11:20:41 +0200
committerKristofer Jonsson <kristofer.jonsson@arm.com>2022-08-25 09:13:36 +0000
commitf4379e99431e5b027b0d5942ccff56af6bfe82b1 (patch)
tree793dbd611483e6850dfc29db3048f92975800bf8 /applications/message_handler/test/message_client.cpp
parent05dd24dd63fcd0a2f8d6a0db1a7bf740ee968a00 (diff)
downloadethos-u-core-platform-f4379e99431e5b027b0d5942ccff56af6bfe82b1.tar.gz
Add negative testing to message_handler
Also restructure the scatter file to not be constrained of the artificial 512k size limit of the APP_IMAGE region. Add missing sections in DDR for both scatter file and linker script. Change-Id: I3d9bc8aeae1b1c11ab994276be64a2850cc23f8e
Diffstat (limited to 'applications/message_handler/test/message_client.cpp')
-rw-r--r--applications/message_handler/test/message_client.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/message_handler/test/message_client.cpp b/applications/message_handler/test/message_client.cpp
index 4209564..39d1392 100644
--- a/applications/message_handler/test/message_client.cpp
+++ b/applications/message_handler/test/message_client.cpp
@@ -34,7 +34,7 @@ MessageClient::MessageClient(EthosU::ethosu_core_queue &_inputMessageQueue,
bool MessageClient::sendInputMessage(const uint32_t type, const void *src, uint32_t length) {
if (!input.write(type, src, length)) {
- printf("ERROR: Msg: Failed to write ping request. No mailbox message sent\n");
+ printf("ERROR: Msg: Failed to write message request. No mailbox message sent\n");
return false;
}
@@ -44,7 +44,7 @@ bool MessageClient::sendInputMessage(const uint32_t type, const void *src, uint3
}
bool MessageClient::waitAndReadOutputMessage(const uint32_t expected_type, uint8_t *dst, uint32_t length) {
- constexpr TickType_t delay = pdMS_TO_TICKS(2);
+ constexpr TickType_t delay = pdMS_TO_TICKS(5);
constexpr TickType_t deadline = pdMS_TO_TICKS(/* 1 minute */ 60 * 1000 * 1000);
struct ethosu_core_msg msg;
@@ -68,7 +68,7 @@ bool MessageClient::waitAndReadOutputMessage(const uint32_t expected_type, uint8
}
if (msg.type != expected_type) {
- printf("ERROR: Wrong message type\n");
+ printf("ERROR: Wrong message type. Got %" PRIu32 " expected %" PRIu32 "\n", msg.type, expected_type);
return false;
}