
Read Cortex-M Disassembly With arm-none-eabi-objdump
Disassemble a Cortex-M ELF with arm-none-eabi-objdump: pick sections and symbols, read the encoding columns, and spot literal pools and the vector table.
Tag
20 posts

Disassemble a Cortex-M ELF with arm-none-eabi-objdump: pick sections and symbols, read the encoding columns, and spot literal pools and the vector table.

How ARM Cortex-M assembly moves data between memory and registers: LDR and STR sizes and addressing, offsets, writeback, and the multi-register LDM and STM.

Learn how a microcontroller bootloader starts, validates and updates firmware, from the Cortex-M reset sequence to safe OTA, rollback and secure boot.

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.
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.

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 Cortex-M assembly end to end: registers, Thumb-2 encodings, branches, calling convention, startup, interrupts, RTOS switching, atomics, DSP and FPU.

Build a Cortex-M boot path from scratch: vector table, reset handler, linker script, .data and .bss, heap, stack, constructors and debugging, with a Makefile.