Skip to main content
Visitor II
March 21, 2025
Question

Can't Connect to UART With STM32 Nucleo L476RG

  • March 21, 2025
  • 3 replies
  • 853 views

I just started using and learning how to use the STM32 Nucleo L476RG Board. I am trying to integrate UART into STM32 to display text in Tera Term by using this guide (https://wiki.st.com/stm32mcu/wiki/STM32StepByStep:Step3_Introduction_to_the_UART).

However, after building and running the project to my board as well as connecting it to Tera Term, output text is still not displaying in Tera Term. I configured my board by activating USART2 with matching default parameters as Tera Term, and is connected to PC through USB A-to-Mini B cable.Screenshot (3).pngScreenshot (4).pngScreenshot (5).pngScreenshot (6).pngScreenshot (7).png Does anyone have a solution? Thanks!

 

    This topic has been closed for replies.

    3 replies

    Graduate II
    March 21, 2025

    Check with an oscilloscope to see if the PA2 is transmitting. Then you can determine if it's on the STM32L476 side or VCP/Tera Term side that has an issue.

     

    Another thing you can try is to do a loop back test on the VCP. Make sure the STM32 is erased else you won't be able to test the loop back. Place a jumper CN3. You should be able to send some text from Tera Term, and you should see text echo back.

     

    KarlYamashita_0-1742600963824.png

     

    Super User
    March 22, 2025

    minor thing: use strlen instead of sizeof.

    hth

    KnarfB

    Graduate
    March 22, 2025

    Double check the COM port number. In TeraTerm serial config dialog, the bottom panel should display "ST Microelectronics ..."; it doesn't - you are configuring another port in TeraTerm, not the Nucleo VCP.