Software › Blink LD2 (on-board LED)
Blink LD2 (on-board LED)
demo Open · freely redistributable
An original CC0 bare-metal STM32F411RE program written for emulators.org and compiled with clang for thumbv7em (ARM Cortex-M4F). It enables the GPIOA clock in RCC (AHB1ENR), configures PA5 as a push-pull output in MODER, and toggles the on-board green user LED (LD2) with the atomic BSRR set/reset register in a busy-wait loop. LD2 is active-high, so the LED lights when the pin is driven high. Real STM32 register path, no runtime.
Format: STM32F411RE flash image (bare-metal, compiled C) · By: emulators.org · Licence: Public domain (CC0)