Skip to main content
Mani1
Associate III
August 21, 2021
Solved

USART 2 Transmit not working

Board : STM32F746G

I configure USART1 with same configuration. USART1 is working fine. I did same configuration for USART2 also, but USART2 not working. I don't know what's happening.

Thanks

Manikandan D

This topic has been closed for replies.
Sebastiaan
SebastiaanBest answer
Associate II
August 23, 2021

And what do you mean with "serial port"? Are you scoping it? Or is it connected to FTDI -> USB? Hence my question "What is UART2 connected to?"...

I suppose that UART1 and UART2 are not connected to the same physical HW block

9 replies

Tesla DeLorean
Guru
August 21, 2021

Show RCC, GPIO and USART2 related initialization code.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Mani1
Mani1Author
Associate III
August 21, 2021

@Community member​  here i have attached my main.c file

Sebastiaan
Associate II
August 22, 2021

What exactly is not working? It's not clear what you're trying to achieve. What is UART2 connected to? Did you scope the TX pin? is it pulled high by another component?

Mani1
Mani1Author
Associate III
August 23, 2021

I am going to send "Hello!" via USART2 transmit. Same method i used for UASRT1 transmit, but there the hello printed in serial port. When i am using USART2 transmit, the "Hello!" is not print in serial port.

Thanks

Manikandan D

Sebastiaan
SebastiaanBest answer
Associate II
August 23, 2021

And what do you mean with "serial port"? Are you scoping it? Or is it connected to FTDI -> USB? Hence my question "What is UART2 connected to?"...

I suppose that UART1 and UART2 are not connected to the same physical HW block

TDK
August 23, 2021

> Board : STM32F746G

This is a chip, not a board. Do you mean the 32F746GDISCOVERY?

USART2 is not hooked up to the VCP.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Mani1
Mani1Author
Associate III
August 23, 2021

Do you mean the 32F746GDISCOVERY?

YES