Skip to main content
Associate II
November 10, 2023
Solved

STM32CubeIDE freeRTOS semaphore creation issue

  • November 10, 2023
  • 1 reply
  • 2995 views

Hi,

I have a problem during creation of Semaphore in STM32CubeIDE. When I create a semaphore (dynamic or static) and add it to register view then.... nothing happens. I discovered that issue when in fact this mutex behaves as it wouldn't be created ever (taking it, results in  time out). In exactly same way, I do create other semaphores/mutex in the system and all fine. I was making tests and observed:

  • dynamic/static creation has no effect
  • heap is sufficient, creation in dynamic mode successfully allocates memory for it
  • the order or creation matters, just like there would be a lock on max 6 sempahores. When I move the semaphore to initialize it first, it works, but the still the last semaphre suffers. 

Any ideas?

Thanks

Marcin

MarcinGajewski_0-1699617064869.png

 

Best answer by MarcinGajewski

There is limitation in freeRTOS of queue in registry, limited in my case to 8 (I have had already 2 standard queues), so just 6 places left, not allowing 7th to be created.

MarcinGajewski_0-1699617956100.png

 

Issue sorted.

1 reply

MarcinGajewskiAuthorBest answer
Associate II
November 10, 2023

There is limitation in freeRTOS of queue in registry, limited in my case to 8 (I have had already 2 standard queues), so just 6 places left, not allowing 7th to be created.

MarcinGajewski_0-1699617956100.png

 

Issue sorted.

Explorer II
February 11, 2025

This help a lot on my side, 
Many thanks

 

Regards, Axel