This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS570LS1224: Add #ifdef to os_mpu_wrapper

Part Number: TMS570LS1224
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hi guys,

I think I've found an issue when create a new application using halcogen.

When I create application using FreeRTOS template and I changed

#define configUSE_MUTEXES               1

(in file FreeRTOSConfig.h)

There is error during compilation:
unresolved symbol xQueueCreateMutexStatic, first referenced in ./source/os_mpu_wrappers.obj    AirBroSuspensionFreeRTOS             C/C++ Problem

Please add #ifdef configSUPPORT_STATIC_ALLOCATION to the file os_mpu_wrapper.c in your templates:

#ifdef configSUPPORT_STATIC_ALLOCATION
QueueHandle_t MPU_xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue )
{
	QueueHandle_t xReturn;
	BaseType_t xRunningPrivileged = prvRaisePrivilege();
	xReturn = xQueueCreateMutexStatic( ucQueueType, pxStaticQueue );
	portRESET_PRIVILEGE( xRunningPrivileged );
	return xReturn;
}
#endif

Thank you.