NUCLEO-L476RG USART, nothing displayed by the console
I m trying to communicate through USART with my NUCLEO-L476RG but the STM console is displaying nothing.
I have created a simple project:

I m overriding the __io_putchar function:
int __io_putchar(int ch)
{
if (ch == '\n') {
uint8_t ch2 = '\r';
HAL_UART_Transmit(&huart2, &ch2, 1, HAL_MAX_DELAY);
}
HAL_UART_Transmit(&huart2, (uint8_t*)&ch, 1, HAL_MAX_DELAY);
return 1;
}and using it (indirectly, through __int_write) in printf:
/* USER CODE BEGIN 2 */
float pi = 3.14f;
printf("the pi number is : %f\n", pi);
/* USER CODE END 2 */the code compiles without errors, however when I try to run it in the console, I receive nothing

