From 06ebcbcde891635b3f9c5b208b373b8d973e8ac6 Mon Sep 17 00:00:00 2001 From: Davide Grohmann Date: Mon, 4 Apr 2022 14:27:49 +0200 Subject: 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 --- applications/threadx_demo/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.1