adi_uart_Open failed with ADI_UART_SEM_FAILED code

Hello!

We're trying to open the UART device on ARM core of ADSP-SC584 but it fails on adi_uart_Open. This is because the size of the FreeRTOS semaphore is larger than the macro ADI_OSAL_MAX_SEM_SIZE_CHAR (64 bytes) defines.

Both FreeRTOS macros are enabled (configSUPPORT_STATIC_ALLOCATION and configSUPPORT_DYNAMIC_ALLOCATION = 1). In this configuration the size of the semaphore is 79 bytes, so the following condition fails:

ADI_OSAL_STATUS adi_osal_SemCreateStatic(void* const pSemObject, uint32_t nSemObjSize, ADI_OSAL_SEM_HANDLE *phSem, uint32_t nInitCount)
{
ADI_OSAL_STATUS eRetStatus;
SemaphoreHandle_t pSemaphore;

#ifdef OSAL_DEBUG
if ((false == _adi_osal_IsMemoryAligned(pSemObject)) ||
(NULL == pSemObject) ||
(nSemObjSize < sizeof(StaticSemaphore_t)) )
{
*phSem = ADI_OSAL_INVALID_SEM;
return (ADI_OSAL_BAD_MEMORY);
}
#endif /* OSAL_DEBUG */

Please explain how we should properly create a UART device?

-----------------------------------------------------

CCES 2.9.1

FreeRTOS 10.2