
Write Your First Cortex-M Assembly Function and Call It From C
Write a Thumb-2 function in a .S file, declare it in C, build with arm-none-eabi-gcc 14 and see exactly how arguments and the result travel in registers.
Bare-metal firmware on STM32, ESP32, RP2040, AVR, nRF and RISC-V: GPIO, UART, SPI, I2C, DMA, interrupts, timers, low power and over-the-air updates.

Write a Thumb-2 function in a .S file, declare it in C, build with arm-none-eabi-gcc 14 and see exactly how arguments and the result travel in registers.

Build nRF52 and nRF53 firmware from first LED to BLE, power, DFU and the dual-core nRF5340 with the nRF Connect SDK, Zephyr and tested register-level code.
A32, Thumb and Thumb-2 are three ways to encode ARM instructions. See how they differ, which one a Cortex-M runs, and how to read the encodings in objdump.

Learn how DMA controllers move data without the CPU, from memory copies to ADC, UART and timer transfers, on STM32, RP2040 and ESP32, and the pitfalls to avoid.

A map of every core register on an ARM Cortex-M: R0 to R12, the two stack pointers, LR, PC, xPSR and the special registers, with what each one is for.

Learn ESP32 firmware with ESP-IDF v5.4: install the toolchain, build a project, use FreeRTOS tasks, GPIO, NVS, Wi-Fi, HTTP, OTA and debugging, with code.

Learn low-power firmware from the energy model to sleep modes, clocks, pins, wake-up sources, measurement and battery budgets, with a complete STM32 example.

How an RTOS works on a microcontroller: tasks, scheduling, interrupts, queues, mutexes, memory and timing, with FreeRTOS code and a route through the series.

Learn I2C from the open-drain wires up: addresses, ACK, repeated start, pull-up sizing, STM32 register code, bus scans, clock stretching and recovery.

A practical guide to USB device firmware: enumeration, descriptors, endpoints, device classes, stacks, hardware, a first STM32 device, debugging and updates.

Learn GPIO from the pin up: modes, pull resistors, drive strength, interrupts, debouncing, alternate functions and loads, with STM32 code and cross-chip notes.

One driver for one chip, built from user-space probing to a regmap core with I2C and SPI front ends, IIO output, interrupts, error handling and debugging.
We send one email when a new post is published. No spam.