aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Grohmann <davide.grohmann@arm.com>2022-04-04 14:27:49 +0200
committerDavide Grohmann <davide.grohmann@arm.com>2022-04-05 10:14:56 +0200
commit06ebcbcde891635b3f9c5b208b373b8d973e8ac6 (patch)
tree7fd43f5c754f8f41b66952e3ff9d0c722fad8ba4
parentd89ee0d46f849485484808e964d2d6f6ccb72158 (diff)
downloadethos-u-core-platform-06ebcbcde891635b3f9c5b208b373b8d973e8ac6.tar.gz
Fix: threadx demo app semaphore should be initlaized to count 0
Otherwise the core_driver won't wait for the actual interrupt signaling inference completed and exit immediately. Change-Id: Ibb413d19701f9add4fd8c16137dbe59de5868ea9
-rw-r--r--applications/threadx_demo/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/threadx_demo/main.cpp b/applications/threadx_demo/main.cpp
index dc9055b..bf65085 100644
--- a/applications/threadx_demo/main.cpp
+++ b/applications/threadx_demo/main.cpp
@@ -167,7 +167,7 @@ void *ethosu_semaphore_create(void) {
TX_SEMAPHORE *semaphore;
semaphore = new TX_SEMAPHORE;
- status = tx_semaphore_create(semaphore, nullptr, 1);
+ status = tx_semaphore_create(semaphore, nullptr, 0);
if (status != TX_SUCCESS) {
printf("Semaphore create failed, error - %d\n", status);