Software › Blink pin 13 (on-board LED)

Blink pin 13 (on-board LED)

demo Open · freely redistributable

An original CC0 bare-metal i.MX RT1062 program written for emulators.org and compiled with clang for thumbv7em (ARM Cortex-M7). It gates the GPIO clock in CCM, routes the pin-13 pad to the fast GPIO7 port in IOMUXC_GPR, configures pin 13 as an output in GPIO7_GDIR, and toggles the on-board LED with the atomic DR_SET/DR_CLEAR alias registers — exactly what digitalWriteFast(13,...) compiles to. Pin 13 is active-high, so the LED lights when the pin is driven high. Real i.MX RT register path, no runtime.

Download ↓

Format: i.MX RT1062 FlexSPI flash image (bare-metal, compiled C)  ·  By: emulators.org  ·  Licence: Public domain (CC0)

Runs on