STM32 Programming· Live

Send text to the computer

Video lesson · in the full course

We turn on USART2 (115200 baud) and send Hello world from the board in a loop. A serial terminal in the browser shows the text arriving over the USB cable.

What this lesson covers

  • Start from your breathing-LED project
  • USART2 in asynchronous mode
  • The text to send
  • HAL_UART_Transmit in the loop
  • See it in a browser serial terminal

By the end, your board sends "Hello world" to a terminal in your browser over the same USB cable, with no extra adapter.

The full course has the video, every step with screenshots, the code with a copy button, and the checks and fixes. $20 once unlocks this lesson, the other 7 full-course lessons and 36 bonus lessons, and you can ask me questions under each one. Checkout on steppeschool.com; 14-day money-back guarantee.