ARMv7-A Cortex-A7 Architecture, Boot ROM & Bare-Metal BSP
For: Embedded C, BSP, firmware, and Linux bring-up engineers
Construct an inspected ARMv7-A bare-metal image, establish its C runtime, and test a modular GPIO BSP without confusing host-model evidence with board proof.
18 lessons6 labs~9h 5mLinux 6.12C11U-Boot 2025.xCourse 1 of 8 · Free Foundation
Build a first-principles mental model of cross-compilation across LP64 hosts and 32-bit ILP32 Cortex-A7 silicon, map the internal blocks of the i.MX6ULL SoC, isolate UART, TFTP, and NFS failure planes, and prove overflow-safe RAM window bounds in ISO C11.
Understand from first principles how compiled C and assembly functions exchange arguments in Cortex-A7 integer and VFPv4 registers under AAPCS32, why cold reset traps floating-point instructions, and how ELF32 separates file-backed sections from zero-filled .bss RAM.
Start from CMOS output transistors and Kirchhoff's Voltage Law to understand why active-low LEDs illuminate when a GPIO sinks current to ground, trace schematic nets across board-to-board connectors to i.MX6ULL ball GPIO1_IO03, and update single register bits safely in ISO C11.
Understand from hardware first principles why Cortex-A7 implements nine processor modes and banked SP/LR/FIQ register storage, decode every control slice of CPSR, and bracket privileged CP15 SCTLR accesses with DSB and ISB barriers.
Master the RISC load/store datapath of Cortex-A7 from first principles: separate effective-address calculation from pre/post-indexed base writeback, combine inline barrel shifts with BIC/ORR field masks, route VBAR exception vectors, and avoid signed-flag bugs on DDR3 addresses.
Understand why Cortex-A7 stores subroutine return addresses in a single Link Register (LR), trace full-descending stack frames (STMFD/LDMFD) down to their 16-bit hardware register bitmask, and enforce 8-byte AAPCS32 stack alignment across nested C calls.
Understand from silicon physics why peripherals sit behind two-bit CCM clock gates (CCGR0..CCGR6) and per-ball IOMUXC crossbar multiplexers, what SION bit 4 and SELECT_INPUT daisy chains actually wire inside the I/O ring, and how to update each field without disturbing neighbors.
Trace the internal flip-flops, tri-state drivers, and edge detectors of an i.MX6ULL GPIO bank: preload DR before GDIR to eliminate startup glitches, distinguish DR latches from PSR wire state, split ICR1/ICR2 half-bank triggers, and clear W1C ISR flags without losing sibling interrupts.
Start from the reset-edge physics of boot-strap D-latches and irreversible eFUSE overrides, decode SRC_SBMR1 and SRC_SBMR2 bitfields, and partition pre-DDR 128 KiB internal OCRAM without trampling active Boot ROM workspace.
Master the three distinct coordinate systems of an i.MX6ULL boot container—SD/eMMC sector offsets, compact .imx file offsets, and runtime RAM pointers—while serializing the mixed-endian 32-byte IVT and 12-byte Boot Data structures.
Solve the cold-boot chicken-and-egg problem with big-endian Device Configuration Data (DCD) command streams, enforce bounded parser invariants, and assemble a verified 3088-byte .imx container in ISO C11.
Build the bare-metal C runtime environment from first principles in ARMv7-A assembly: mask IRQ/FIQ in Supervisor mode, align SP_svc to 8 bytes, relocate .data from LMA to VMA, zero [__bss_start, __bss_end), and enter main safely.
Author auditable GNU ld linker scripts from first principles: pin _start with ENTRY and KEEP, separate packed AT(LMA) load images from VMA execution maps, export aligned BSS/stack symbols without C dereference bugs, and enforce RAM ceilings via link-time ASSERTs.
Replace fragile raw hex casts with compile-time-verified C11 MMIO struct overlays: prove byte offsets with offsetof and _Static_assert, understand why packed structs and C bit-fields break ARMv7-A peripheral buses, and isolate silicon headers from board policy.
Architect a clean three-layer bare-metal Board Support Package (silicon headers, narrow subsystem drivers, and logical application code) backed by path-preserving GNU Make pattern rules and GCC -MMD -MP header dependency graphs.
Derive PNP high-side (active-low) and NPN low-side (active-high) transistor buzzer circuits from BJT junction physics, enable GPIO5 selectively in CCM_CCGR1 and IOMUXC_SNVS, and switch loads without boot chirps or sibling-pin corruption.
Complete the GL-E01 bare-metal BSP capstone from first principles: sample active-low tactile switches via GPIO1_PSR, filter millisecond mechanical contact chatter with a nonblocking three-variable FSM, prove modulo-2^32 tick wraparound safety, and coordinate LED + buzzer outputs cleanly.
Leitner spaced-repetition terminal cards and TSV deck for syscalls, flags, and pitfalls.
# Kernel Systems Academy engineering studio
Every Kernel Systems Academy course follows our 35% principles / 20% guided investigation / 45% engineering studio pedagogy. Listings are compiled against Linux 6.12 · C11 · U-Boot 2025.x under strict compiler flags (-Wall -Wextra -Werror), and each module culminates in an evidence-checked lab graded locally by ./check.sh.
100% Free Foundation Course (Linux 6.12 · ISO C11)
All 18 lessons, all 6 TAP 13 labs, the 16:9 slide deck, printable PDF/HTML reference handbook, and Leitner flashcards are unlocked for free.
Yes. All fonts, stylesheets, diagrams, search indexes, and progress trackers use relative paths and local browser storage, so the bundle works identically over HTTP and file://.
How are the hands-on labs graded?
Each lab directory includes starter source files and an executable ./check.sh runner emitting TAP version 13 diagnostics (ok / not ok) and exiting 0 when every check passes.
What is included in the free preview?
Preview lessons and the opening module lab are unlocked in full so you can inspect our C11 listings, strace transcripts, and ./check.sh workflow before subscribing.