STM32CubeIDE freeRTOS semaphore creation issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-10 3:54 AM
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
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-10 4:06 AM
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.
Issue sorted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-10 4:06 AM
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.
Issue sorted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-10 11:21 PM
This help a lot on my side,
Many thanks
Regards, Axel
