STM32L476 uart flow contorl does not work

Hi, after configuring correctly the USART2 for working with FlowControl, i can see that the RTS is not being working at all . and the CTS flag is not being used under the RTOS software. im using RTOS @version V1.1.1 @date 16-October-2015 configuration : huart2.Init.BaudRate = 115200; huart2.Init.WordLength = UARTWORDLENGTH8B; huart2.Init.StopBits = UARTSTOPBITS1; huart2.Init.Parity = UARTPARITYNONE; huart2.Init.Mode = UARTMODETXRX; huart2.Init.HwFlowCtl = UARTHWCONTROLRTSCTS;//UARTHWCONTROLRTSCTS huart2.Init.OverSampling = UARTOVERSAMPLING16; huart2.Init.OneBitSampling = UARTONEBITSAMPLINGENABLED;
GPIO_InitStruct.Pin = USART2_RX_FUNCTION_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
GPIO_InitStruct.Alternate = GPIO_AF7_USART2;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);

GPIO_InitStruct.Pin = USART2_TX_FUNCTION_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
GPIO_InitStruct.Alternate = GPIO_AF7_USART2;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);

GPIO_InitStruct.Pin = USART2_RTS_FUNCTION_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_PULLDOWN;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
// GPIOInitStruct.Alternate = GPIOAF7USART2; HALGPIOInit(GPIOA, &GPIOInitStruct);
GPIO_InitStruct.Pin = USART2_CTS_FUNCTION_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
// GPIOInitStruct.Alternate = GPIOAF7USART2; HALGPIOInit(GPIOA, &GPIOInitStruct);

STM32L476 uart flow contorl does not work

That isn’t a FreeRTOS issue, as FreeRTOS doesn’t provide the serial driver, and doesn’t touch the UART hardware at all, but sounds like a software configuration issue or a vendor provided driver issue. Mentioning the processor would be an absolute minimum for someone to help you, but it would be much better to go to the vendor forums to ask for help, as you will find many more people who know the processor there.