Skip to main content
Associate II
July 4, 2023
Solved

stm32f407vgt6 problem with UART

  • July 4, 2023
  • 1 reply
  • 1723 views

I have stm32f407vgt6 from devebox. At first, I wanted to do led blink and it worked fine when I supplied it with external power via 5V pins. Then, when I tried to use UART pin (PA_9, PA_10) to print something to USB to TTL module, it did nothing. UART pins only work when I connected micro USB on stm32f407vgt6. Does anyone know how to solve this?

This topic has been closed for replies.
Best answer by JTP1

Hello. How do you feed the power when using UART without usb connection ? Is your ground missing from mcu to ttl/usb converter ?

1 reply

JTP1Best answer
Graduate II
July 4, 2023

Hello. How do you feed the power when using UART without usb connection ? Is your ground missing from mcu to ttl/usb converter ?

syifnrlAuthor
Associate II
July 4, 2023

I supply my stm through 5v pin and gnd pin from my 12v lipo battery, equipped with step down converter. Then, I only connect PA9 and PA10 to my USB to TTL module (I use CP2102 USB to TTL module from waveshare).

Graduate II
July 4, 2023

Ok. Note that you also need gnd to usb/ttl module :thumbs_up: sounds that its missing if communication works after you connect another usb cable from pc to micro usb which connects pc gnd to mcu gnd.