MPLAB C30 fails on xSemaphoreCreateMutex

williamfrasson wrote on Friday, May 09, 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…

rtel wrote on Friday, May 09, 2008:

Just add it the the FreeRTOSConfig.h file then you should be ok.  Missing constants are just defaulted to 0.

Regards.