2023-07-04 04:17 AM
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?
Solved! Go to Solution.
2023-07-04 04:30 AM
Hello. How do you feed the power when using UART without usb connection ? Is your ground missing from mcu to ttl/usb converter ?
2023-07-04 04:30 AM
Hello. How do you feed the power when using UART without usb connection ? Is your ground missing from mcu to ttl/usb converter ?
2023-07-04 04:37 AM
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).
2023-07-04 05:39 AM - edited 2023-07-04 05:47 AM
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.
2023-07-04 09:28 PM
Thank you! your advice is such a big help for my last year final project