MPLAB C30 fails on xSemaphoreCreateMutex

Posted by William Frasson on May 9, 2008
Hi,
I'm tring to use a Mutex Semaphore into my code.
When i compile the code " xSemaphore = xSemaphoreCreateMutex(); "
the linker returns errors:
"undefined reference to `xQueueCreateMutex'"

I also see that #define configUSE_MUTEXES should be defined = 1 but this is not done nowhere in the code and the file freeRTOSConfig.h doesn't have this define.

What wrong?
Thank for the help..

RE: MPLAB C30 fails on xSemaphoreCreateMutex

Posted by Richard on May 9, 2008
Just add it the the FreeRTOSConfig.h file then you should be ok. Missing constants are just defaulted to 0.

Regards.