cancel
Showing results for 
Search instead for 
Did you mean: 

UART doesn't work

_Louis_
Associate

Hi evryone,

 

I'm trying to initialise a very basic UART communication between my stm32 L552ZE-Q and my computer by following this tutorial: https://www.youtube.com/watch?v=dEQwSl8mCFs&t=924s

 

I have no errors, no warning while compiling and the problem is that there is nothing displayed on the PuTTy teminal. I also used TeraTerm and VScode serial terminal and nothing happened. I tried also on an other computer and same problem.

_Louis__2-1736331047092.png

 

I have upgraded the code by adding a blinking LED to verify if something is even running and the LED is blinking but again nothing on Putty...

 

  while (1)
  {

    /* USER CODE END WHILE */

    /* USER CODE BEGIN 3 */
	  HAL_UART_Transmit(&huart2, tx_buffer, 27, 10);
	  HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_9);
	  HAL_Delay(1000);
  }

 

I've checked the COM port used in my device manager and set the correct Baud rate, I don't know to do next.

_Louis__0-1736330985875.png_Louis__1-1736331018777.png

 

Thank you for your help!

 

Louis

11 REPLIES 11

You'd have to wait for ST to fix it or you'll have to manually write the configurations. Or try another Nucleo board that doesn't have the same issue.

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.


@_Louis_ Some other options:

  •  use a different UART, and a separate external USB-to-UART adapter
  • reconfigure the board (as shown in the UM) to connect USART3 (on PD8,PD9) to the ST-Link instead.