Software › USART2 Serial (ST-Link VCP)
USART2 Serial (ST-Link VCP)
demo Open · freely redistributable
An original CC0 bare-metal STM32F411RE program. It enables GPIOA and USART2 in RCC, configures PA2 as the USART2_TX alternate function (AF7), sets the baud-rate register and enables the transmitter (CR1.UE/TE), then prints "Hello from the STM32 Nucleo-F411RE!" followed by an incrementing four-digit counter (hand-written decimal add, no libc, no division) — waiting on SR.TXE / SR.TC for each byte — while blinking LD2 (PA5). USART2 is the ST-Link virtual COM port on a real Nucleo.
Format: STM32F411RE flash image (bare-metal, compiled C) · By: emulators.org · Licence: Public domain (CC0)