© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
W. GayBeginning STM32Maker Innovations Serieshttps://doi.org/10.1007/979-8-8688-0199-0_6

6. USART

Warren Gay1  
(1)
St. Catharines, ON, Canada
 

The Blue Pill PCB provides one GPIO-controlled LED to communicate by. Needless to say, this would be limiting if it were all you had. Perhaps the best early-development peripheral to pursue for communication is the USART (Universal Synchronous/Asynchronous Receiver/Transmitter).

This chapter will examine how to coax an STM32 USART to speak to your desktop through a USB serial adapter cable. A second project will demonstrate the same USART using two FreeRTOS tasks and a message queue.

USART/UART Peripheral

Within this book ...

Get Beginning STM32: Developing with FreeRTOS, libopencm3, and GCC now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.