2026-02-14 6:30 AM - last edited on 2026-03-02 4:40 AM by KDJEM.1
Hello
I'am new to STM32 and i want to create project that interface with user using uart with serial monitor
i configured usart and used hal_uart tarsnmit function but it didnt work when the tutorial im following worked for him
what can be the issue?
Solved! Go to Solution.
2026-02-15 6:23 AM
Hello @avatar_ang and welcome to STcommunity!
can you explain how are you trying to print your messages in serial monitor?
in the STM32F407G-DISC1 ,the ST-Link embedded in the F407 discovery is not wired to a target MCU UART, so it has no virtual COMPORT capability.(the physical connection is missing.) you will need to add physical link wires to the Discovery board or connect to a separate USB-to-UART adaptor.
Maybe this is your issue.
If this isn't your issue , please provide more informations
BR
Gyessine
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.
2026-02-15 1:33 AM
What kind of help you expect without providing any code or schematic?
2026-02-15 6:23 AM
Hello @avatar_ang and welcome to STcommunity!
can you explain how are you trying to print your messages in serial monitor?
in the STM32F407G-DISC1 ,the ST-Link embedded in the F407 discovery is not wired to a target MCU UART, so it has no virtual COMPORT capability.(the physical connection is missing.) you will need to add physical link wires to the Discovery board or connect to a separate USB-to-UART adaptor.
Maybe this is your issue.
If this isn't your issue , please provide more informations
BR
Gyessine
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.
2026-02-16 2:01 AM
@Gyessine wrote:the ST-Link embedded in the F407 discovery is not wired to a target MCU UART, so it has no virtual COMPORT capability
It does have the VCP (Virtual COM Port) capability in the ST-Link itself - it just lacks the physical connection from the ST-Link to the F407 Target MCU
2026-02-16 2:46 AM
Welcome to the forum.
As @gbm says, it helps to give more details about your situation - see:
How to write your question to maximize your chances to find a solution
@avatar_ang wrote:it didn't work when the tutorial I'm following worked for him
Was that tutorial specifically for the STM32F407G-DISC1 board?
Please also post a link to that tutorial.
What "serial monitor" are you using?
2026-02-23 7:10 AM
thanks for mentioning the USB to UART converter we used one and it worked