# problem with mutex

**URL:** <https://forums.freertos.org/t/problem-with-mutex/3587>\
**Category:** Kernel\
**Created:** [November 21, 2012, 8:03am UTC](https://forums.freertos.org/t/problem-with-mutex/3587 "2012-11-21T08:03:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [November 21, 2012, 8:03am UTC](https://forums.freertos.org/t/problem-with-mutex/3587/1 "2012-11-21T08:03:40Z")

</div>

**[princechauhan](https://sourceforge.net/u/princechauhan/)** wrote on [Wednesday, November 21, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/9d285fb5/#8d61):

My question is related to semaphores. I am working on STM32VL\_DISCOVERY Board, using the ATOLLIC TRUE STUDIO with FRE RTOS. I looked up the mutex semaphore in the API reference, and used them in my program, and compiled it. Got an error complaining about an “undefined reference to xQueueCreateMutex”. If I drop in a binary semaphore is compiles just fine.&nbsp;&nbsp; Again, I’m sure I’m just missing something simple.&nbsp; Any ideas?

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [November 21, 2012, 9:20am UTC](https://forums.freertos.org/t/problem-with-mutex/3587/2 "2012-11-21T09:20:06Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Wednesday, November 21, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/9d285fb5/#8a05):

Set configUSE\_MUTEXES to 1 in FreeRTOSConfig.h.

Regards.
