FREERTOS: Binary-Semaphore initial state bug
Hello Experts,
i am facing a similar issue on the STM32F407G discovery board. Is there any solution or a temporary fix for this iisue?
Changing the initial state of the semaphore to Depleted does nothing in the semaphore definition and creation:

In freertos.c, inside the function MX_FREERTOS_Init(). i think the second function parameter should be zero

I am trying a simple GPIO interrupt to task signaling, but the task always takes a semaphore without the GPIO interrupt the first time. I have attached the complete freertos.c file for context. This is the console screenshot to highlight the bug:

I tried to manually change:
myBinarySem01Handle = osSemaphoreCreate(osSemaphore(myBinarySem01), 1);to
myBinarySem01Handle = osSemaphoreCreate(osSemaphore(myBinarySem01), 0);Now the task does not take the semaphore during start up, but the moment the GPIO interrupt occurs(push-button), the whole system hangs in an asset failure:

Is there any solution to this problem? I have attached my freertos.c file as well.
