Serial communication between STM32F4 and PC -USART-

by muyustan   Last Updated July 12, 2019 08:25 AM - source

The question I will ask now is not about how to solve something, I am currently able to make the connection as it will be mentioned below, but my problem is I really did not understand WHY ? Thanks in advance.


Hey, I am trying to connect my STM32F4-DISC board to PC via USART. It is a very common and basic example like sending a string to PC COM port which is covered by lots of tutorials on the web. But my question is,

I first used this product and directly connected to my board's RX TX pins and I was able to get data but all the data was a mess.(Not random, always same but some characters I have never seen before.)

I think there was nothing wrong with connections because when I disconnect the jumper which connects the Rx of converter and Tx of DISC board, there was nothing ongoing even that messed up characters.

After lots of thinking about "what is wrong? is it code?( It could not be because only 3 lines of code and all examples writes the same thing) ", I found a little device which has a chip on it( I can't read what is the model or manufacturer) and one side is D sub 9 male and other side has 4 jumpers come out of that named as Rx,Tx,GND and 3.3V. Then I also used it and created a connection like this:

PC --USB ENTRANCE-- DIGITUS USB to serial adaptor -- D SUB 9 ENTRANCE -- THE IC I MENTIONED ABOVE -- JUMPERS -- STM32F4

After this setup I was able to see the correct text on the screen and everything worked well.

I researched about why this could be but did not understand. The digitus product itself looks like the only necessity to connect my board to PC but It does not work alone.

I wonder what is the real case?

Tags : stm32 uart


Related Questions


STM32 USART Rx Interrupts

Updated April 19, 2017 15:25 PM

Restart Rx USART + DMA in STM32L1

Updated July 27, 2015 13:10 PM

STM32F107 SPI -> UART maximal transfer rate

Updated June 08, 2016 08:10 AM

STM32 USART Protocol

Updated November 03, 2018 21:25 PM

STM32F4 USART CONFIG

Updated November 09, 2018 19:25 PM