cancel
Showing results for 
Search instead for 
Did you mean: 

Configure UART3 on NUCLEO-H7S3L8 Board for use with ST-Link VCP

Shreayas_Acharaya
Associate III

Title edited to reflect the correct board used. Changed from NUCLEO-H7A3ZI-Q to NUCLEO-H7S3L8.

Hi,
I’m trying to set up UART communication using UART3 on the NUCLEO-H7A3ZI-Q board. I have the UART3 pins (PD8 and PD9) connected to the ST-Link VCP on this board.

Do I need an external USB-UART converter to communicate through other UART pins, or should the onboard ST-Link handle the UART3 communication through VCP?
It's showing USART3 is not available.

Shreayas_Acharaya_0-1732541453113.png

 

I’m new to this board, so I want to confirm if there’s anything I might be missing in the configuration or connections. Any guidance would be appreciated!

Thanksin advance!

1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

Hello,

As a workaround, go to the Bsp menu and activate the Virtual Com port then deactivate it , then go back to USART3 under connectivity and you will be able to configure it. 

SofLit_0-1732705241412.png

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

12 REPLIES 12
SofLit
ST Employee

Hello,

If you want to use USART with PD8/PD9 with STLINK virtual comport no need to use external USB/UART bridge.

But if you need to change to other IOs using an external USB/UART bridge is a must.

But there is a workaround: you can use USART3 with other IOs and using STLINK-VCP by wiring the Tx connected to the VCP to the new Tx. Same for Rx.

Attached an ioc file where USART3 is enabled on NUCLEO-H7A3ZI-Q board.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

@SofLit wrote:

If you want to use USART with PD8/PD9 with STLINK virtual comport no need to use external USB/UART bridge.

But if you need to change to other IOs, using an external USB/UART bridge is a must.


@Shreayas_Acharaya See this  post:

https://community.st.com/t5/stm32-mcus-products/stm32f4-nucleo-f429zi-unable-to-communicate-with-hmi-via-rs232/m-p/747246/highlight/true#M267271

It explains when the ST-Link's VCP can be used, and when a separate USB-to-UART converter is required.

(It is for a different board, but the same principles apply)

Hi SofLit,

Apologies for the confusion earlier. I realized I misstated the board model—I'm actually working with the NUCLEO-H7S3L8.

I'm facing difficulties setting up UART communication for this board. The settings in the .ioc file seem different, and I'm unclear on how to proceed with UART printing. I'm referencing the user manual for guidance but still finding it a bit unclear.

 

Shreayas_Acharaya_0-1732683729897.png

Could you clarify if I need an external USB-UART converter for UART communication on this board? Or should I rely solely on the onboard ST-Link for VCP functionality?

I am not able to do mode configuration.

Shreayas_Acharaya_1-1732683919646.png

 

Thanks for your help and patience!

Hello,

Check out the UART (printf) example provided in STM32H7RS Cube package for NUCLEO-H7S3L8 board: package: https://github.com/STMicroelectronics/STM32CubeH7RS/tree/main/Projects/NUCLEO-H7S3L8/Examples/UART/UART_Printf

There is an ioc file available for this example. You need to read the readme file to run the example.

Hope it helps.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

@Shreayas_Acharaya wrote:

Could you clarify if I need an external USB-UART converter for UART communication on this board?


What is unclear about this:

AndrewNeil_0-1732698093375.png

It clearly tells you that UART3, using pins PD8 and PD9, is connected to the ST-Link's Virtual COM Port (VCP).

The ST-Link's Virtual COM Port (VCP) is a USB-to-UART bridge; it is built into the Nucleo board precisely so that you do not have to add any external USB-to-UART bridge to communicate via UART3 on pins PD8 and PD9.

 

Conversely, if you use UART3 (or any other UART) on any other pins, they will not be connected to the ST-Link's Virtual COM Port (VCP) and, therefore, you will have to add an external USB-to-UART bridge.

 

PS:

AndrewNeil_0-1732699626235.png

 

https://www.st.com/resource/en/user_manual/um3276-stm32h7rx7sx-nucleo144-board-mb1737-stmicroelectronics.pdf#page=9

Thank you,
But why am I not able to select the UART mode configuration in the IOC?
Screenshot 2024-11-27 103512.png

Also, please clarify what this mean:
Screenshot 2024-11-27 103003.png


@Shreayas_Acharaya wrote:

But why am I not able to select the UART mode configuration in the IOC?
Screenshot 2024-11-27 103512.png


Because simply (I think) you've already enabled USART3 as Virtual Comport at the project creation:

SofLit_0-1732699924507.png

If it is the case, USART3 is ready for usage and you don't need to configure it.

 


@Shreayas_Acharaya wrote:

Also, please clarify what this mean:
Screenshot 2024-11-27 103003.png


@Andrew Neil already explained it in details in his last comment.

Hope it helps.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

@Shreayas_Acharaya wrote:

Also, please clarify what this mean:
Screenshot 2024-11-27 103003.png


Again, what part(s) of that, exactly, do you find unclear?

What part(s) of the  explanation in my previous reply was unclear?

I tried to create a project starting from a board: NUCLEO-H7S3L8 with virtual comport disabled at the project creation:

SofLit_1-1732700536633.png

But UART3 still disabled:

SofLit_2-1732700667836.png

So I think it's a limitation. Will be escalated internally for analysis.

Internal ticket 197144 for follow-up.

 

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.