When not using any dynamic memory allocations the following file needs the following change (if there is a better way to enter these requests please let me know)
#define configSUPPORT_STATIC_ALLOCATION 1
#define configSUPPORT_DYNAMIC_ALLOCATION 0
portclib.c
//-----------------------------------------------------------------------------
// Init lock.
//-----------------------------------------------------------------------------
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
static StaticQueue_t staticSemaphore;
#endif
void
_Mtxinit(_Rmtx * mtx)
{
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
*mtx = xSemaphoreCreateRecursiveMutexStatic(&staticSemaphore);
#else
*mtx = xSemaphoreCreateRecursiveMutex();
#endif
}