While somewhat trickier to set up and use than a GPIO peripheral, the U(S)ART of ST’s STM32 families is fairly uncomplicated to use, and immediately provides one with an easy way to communicate ...
For even more on the subject, you may like our STM32 Bootcamp series on bare-metal STM32 programming.