Video thumbnail for STM32 USB CDC — Virtual COM Port, Transmit & Receive Data | USB Series Part 1

STM32 USB CDC — Virtual COM Port, Transmit & Receive Data | USB Series Part 1

Jun 13, 2026
ControllersTech Logo

ControllersTech

Build an *STM32 USB CDC Virtual COM Port* that allows your STM32 to communicate directly with a PC over USB, without requiring a separate USB-to-UART bridge. In this tutorial, we configure the STM32 USB peripheral in *CDC (Communication Device Class)* mode using STM32CubeMX and STM32CubeIDE. We transmit data from the STM32 to the PC, receive commands through the Virtual COM Port, and use those commands to control an LED. We also redirect *printf over USB CDC* so that the STM32 can use USB as a debug console. Along the way, we look at USB clock configuration, CDC receive handling, buffer management, and an important difference in USB reconnect behavior between the STM32F446 and Blue Pill boards. #STM32 #USB #USBCDC #EmbeddedSystems 📁 *Download Project Files & Full Article:* https://controllerstech.com/stm32-usb-cdc-virtual-com-port/ 📁 *STM32 USB Series:* https://controllerstech.com/stm32-hal/peripherals/usb-tutorials/ 📁 *ControllersTech Home:* https://controllerstech.com/ ### ▶︎ Related Videos 1️⃣ *STM32 USB HID Gamepad:* https://youtu.be/rWdHumNaP8A 2️⃣ *STM32 USB Tutorials Playlist:* https://www.youtube.com/playlist?list=PLfIJKC1ud8gj5iYMN53m4H-Gw3tv9FBxO
#Science