Semaphore

brenodee wrote on Friday, January 25, 2008:

Hi, firstly sorry all for posting so many questions but I’m complete novice!!!

I’trying to use the example aboute “mutexes” but the commpiler return:

undefined reference to xSemaphoreCreateMutex; I include the headres file : semphr.h and queue.h.

The example posted on web page is: http://www.freertos.org/a00122.html

Thanks for all!!!!

rtel wrote on Friday, January 25, 2008:

Have you set configUSE_MUTEXES to 1 in FreeRTOSConfig.h?  You might need to add the definition in, if it is omitted it will get defaulted to 0.

Regards.

brenodee wrote on Friday, January 25, 2008:

Thank you for yuor support. Actually my config file didn’t even have this line. I added it but it’s still returnig that error.

Thank’s again!!!