cancel
Showing results for 
Search instead for 
Did you mean: 

UART doesn't work on STM32F407G-DISC1

avatar_ang
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Gyessine
ST Employee

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.

Gyessine_0-1771165345343.png

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.

View solution in original post

5 REPLIES 5
gbm
Principal

What kind of help you expect without providing any code or schematic?

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

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.

Gyessine_0-1771165345343.png

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.


@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

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Andrew Neil
Super User

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?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
avatar_ang
Associate

thanks for mentioning the USB to UART converter we used one and it worked