Minimalist blocking UART driver for STM32F746-Disco UART1 ST-Link COM Port
Clock: default, no changes (must be 16MHz HSI).
Only activate GPIO, set them to Alternate Function USART1, Very High Speed.
USART1 is the USART connected to ST-Link that makes virtual COM port on PC.
This project is a proof of concept (not of UART, but of me - that I can).
It's not as modular as it could be, but it's not intended to be perfect. Might be useful for someone who wants to figure out how the stuff works.
I commented everything to make it simple to understand.
Hardware:
STM32F746 Disco board, Windows PC
Software:
STM32CubeIDE v1.7.0, Putty for UART communication;
No libraries used except for CMSIS register definitions.