cancel
Showing results for 
Search instead for 
Did you mean: 

How to print single character in stm32 using UART for Bare Metal

jm.2
Associate II
 
2 REPLIES 2

Which STM32?

In older STM32:

UART2->DR = c;

but before writing the next character, you may want to check if UARTx_SR.TXE is set.

JW

jm.2
Associate II

I am using STM32L072CBt6