cancel
Showing results for 
Search instead for 
Did you mean: 

Can't Connect to UART With STM32 Nucleo L476RG

andrewp714
Associate

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!

 

3 REPLIES 3
Karl Yamashita
Principal

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

 

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.
CAN Jammer an open source CAN bus hacking tool
KnarfB
Super User

minor thing: use strlen instead of sizeof.

hth

KnarfB

gbm
Principal

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.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice