How can we check Failure caseses of Semaphore in FreeRTOS. By using Mutex lock and xsemaphoreGive and XsemaphoreTake with RoundRobin and Priority based Scheduling in Stm32H743zI board and Autollic studion Environment.
Sorry but you question is not clear to me. Which failures do you wish to detect? Did you find the api documentation where the function return values are described.
Thanks for the response Richard, I want list of all failure case for semaphore is not working properly in FreeRTOS. In API documentation success criteria are mentioned.
Thanks Richard. We using (mutex and Binary Semaphore) and API we using asr xSemaphoreTake() and xSemaphoregive(). I Want how to check failure of above mentioned API function.
Thanks Richard. We using (mutex and Binary Semaphore) and API we using are xSemaphoreTake() and xSemaphoregive(). I Want how to check failure of above mentioned API function.
xSemaphoreTake() calls xQueueSemaphoreTake(), which is here at the time
of writing: https://sourceforge.net/p/freertos/code/HEAD/tree/trunk/FreeRTOS/Source/queue.c#l1414
At the top of that function you can see the asserts that are checking
for errors. The item size is checked against 0 as if it is not zero
then the structure is a queue not a semaphore.