Skip to main content
jm.2
Associate III
May 22, 2023
Question

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

  • May 22, 2023
  • 2 replies
  • 945 views

..

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
May 22, 2023

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
jm.2Author
Associate III
May 22, 2023

I am using STM32L072CBt6