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.