# Embedded C Roadmap 2027: From First Blink to Firmware Job

Checklist: tick topics as you learn them (works in Obsidian, Notion, GitHub, VS Code and other editors).

The full roadmap with videos and articles: https://muhammadkaif.work/blog/embedded-c-roadmap

21 sections, 248 topics. By Muhammad Kaif.

## 1. Introduction to C

*Phase 1: C foundations*

### 1.1 C Language Basics

- [ ] 1.1.1 [Basic Syntax Structure](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-1-1): How a C program is laid out: includes, declarations, functions and statements.
- [ ] 1.1.2 [Main Function Execution](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-1-2): Where execution starts, and what the startup code does before main() runs on a microcontroller.
- [ ] 1.1.3 [Compilation Process Overview](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-1-3): The four stages from source to binary: preprocess, compile, assemble, link.
- [ ] 1.1.4 [Preprocessor Directives Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-1-4): #include, #define and #if: text substitution that happens before the compiler sees your code.
- [ ] 1.1.5 [Basic Input Output](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-1-5): printf and scanf basics, and why firmware usually swaps them for a UART or a debug channel.
- [ ] 1.1.6 [Commenting Best Practices](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-1-6): Comments that explain why, not what, and header comments that tools like Doxygen can read.

### 1.2 Data Types and Variables

- [ ] 1.2.1 [Integer Data Types](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-2-1): char, short, int, long and their fixed-width forms (uint8_t, int32_t) that firmware relies on.
- [ ] 1.2.2 [Floating Point Types](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-2-2): float and double, and the cost of floating point on cores without an FPU.
- [ ] 1.2.3 [Character Data Types](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-2-3): char as a small integer and as text, signedness traps, and ASCII.
- [ ] 1.2.4 [Modifier Keywords Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-2-4): signed, unsigned, short, long, const and volatile: what each changes about a variable.
- [ ] 1.2.5 [Sizeof Operator Application](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-2-5): Asking the compiler for the size of a type or object, and why it differs between targets.
- [ ] 1.2.6 [Type Casting Methods](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-2-6): Implicit and explicit conversions, and the bugs that come from truncation and sign changes.
- [ ] 1.2.7 [Binary and Hexadecimal Numbers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-2-7): How computers count: binary and hex notation, and converting between them by hand, as register maps are written in hex.

### 1.3 Operators and Expressions

- [ ] 1.3.1 [Arithmetic Operators](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-3-1): +, -, *, / and %: integer division, overflow and what they cost on small cores.
- [ ] 1.3.2 [Relational Operators](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-3-2): ==, !=, <, >, <= and >=: comparing values, and the classic = versus == mistake.
- [ ] 1.3.3 [Logical Operators](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-3-3): &&, || and !: short-circuit evaluation and how it affects side effects.
- [ ] 1.3.4 [Bitwise Operators](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-3-4): &, |, ^, ~, << and >>: the operators you will use on hardware registers every day.
- [ ] 1.3.5 [Assignment Operators](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-3-5): =, +=, |= and &=: compound assignment as the idiom for changing register bits.
- [ ] 1.3.6 [Operator Precedence Rules](https://muhammadkaif.work/blog/embedded-c-roadmap#t-1-3-6): Which operator binds first, and why a few parentheses prevent subtle bugs.

## 2. Control Flow

*Phase 1: C foundations*

### 2.1 Conditional Statements

- [ ] 2.1.1 [If Statement Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-2-1-1): Branching on a condition, including checking a status flag or a sensor reading.
- [ ] 2.1.2 [If Else Construct](https://muhammadkaif.work/blog/embedded-c-roadmap#t-2-1-2): Two-way decisions, and ordering conditions so the common case is cheap.
- [ ] 2.1.3 [Nested If Structures](https://muhammadkaif.work/blog/embedded-c-roadmap#t-2-1-3): Conditions inside conditions, and when deep nesting is a sign to restructure.
- [ ] 2.1.4 [Switch Case Statement](https://muhammadkaif.work/blog/embedded-c-roadmap#t-2-1-4): Multi-way branching on an integer or enum: the natural shape of a state machine.
- [ ] 2.1.5 [Conditional Operator Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-2-1-5): The ?: shorthand for choosing between two values, and when it hurts readability.
- [ ] 2.1.6 [Branching Logic Design](https://muhammadkaif.work/blog/embedded-c-roadmap#t-2-1-6): Structuring decisions clearly: guard clauses, early returns and lookup tables.

### 2.2 Looping Constructs

- [ ] 2.2.1 [While Loop Structure](https://muhammadkaif.work/blog/embedded-c-roadmap#t-2-2-1): Repeat while a condition holds, as in waiting for a peripheral to become ready.
- [ ] 2.2.2 [Do While Loop](https://muhammadkaif.work/blog/embedded-c-roadmap#t-2-2-2): A loop that always runs at least once, useful for read-then-check patterns.
- [ ] 2.2.3 [For Loop Mechanics](https://muhammadkaif.work/blog/embedded-c-roadmap#t-2-2-3): Counted loops over arrays and buffers, and off-by-one errors at the boundaries.
- [ ] 2.2.4 [Break Statement Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-2-2-4): Leaving a loop early, such as on a timeout or an error.
- [ ] 2.2.5 [Continue Statement Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-2-2-5): Skipping to the next iteration, for example to ignore invalid data.
- [ ] 2.2.6 [Infinite Loops Design](https://muhammadkaif.work/blog/embedded-c-roadmap#t-2-2-6): while(1): the main loop of nearly every bare-metal program, and how to keep it responsive.

## 3. Functions and Scope

*Phase 1: C foundations*

### 3.1 Function Basics

- [ ] 3.1.1 [Function Declaration Syntax](https://muhammadkaif.work/blog/embedded-c-roadmap#t-3-1-1): Telling the compiler a function exists before it is defined, usually in a header.
- [ ] 3.1.2 [Function Definition Rules](https://muhammadkaif.work/blog/embedded-c-roadmap#t-3-1-2): Writing a function body: parameters, local variables and a clear single purpose.
- [ ] 3.1.3 [Function Argument Passing](https://muhammadkaif.work/blog/embedded-c-roadmap#t-3-1-3): Pass by value versus passing a pointer, and what each costs in stack and copies.
- [ ] 3.1.4 [Return Values Handling](https://muhammadkaif.work/blog/embedded-c-roadmap#t-3-1-4): Returning values and status codes, and how to report errors without exceptions.
- [ ] 3.1.5 [Function Prototypes Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-3-1-5): Declaring a function's signature up front so calls are type-checked.
- [ ] 3.1.6 [Inline Functions Application](https://muhammadkaif.work/blog/embedded-c-roadmap#t-3-1-6): Asking the compiler to expand a function in place: a speed versus code-size trade-off.

### 3.2 Storage Classes

- [ ] 3.2.1 [Auto Storage Class](https://muhammadkaif.work/blog/embedded-c-roadmap#t-3-2-1): The default storage for local variables, living on the stack.
- [ ] 3.2.2 [Register Storage Class](https://muhammadkaif.work/blog/embedded-c-roadmap#t-3-2-2): A hint to keep a variable in a CPU register, and why modern compilers mostly ignore it.
- [ ] 3.2.3 [Static Storage Class](https://muhammadkaif.work/blog/embedded-c-roadmap#t-3-2-3): Variables that keep their value between calls, and file-private functions and data.
- [ ] 3.2.4 [Extern Storage Class](https://muhammadkaif.work/blog/embedded-c-roadmap#t-3-2-4): Sharing a variable between source files, and why globals deserve caution.
- [ ] 3.2.5 [Scope Rules Overview](https://muhammadkaif.work/blog/embedded-c-roadmap#t-3-2-5): Block, file and global scope, and how to keep names from colliding.
- [ ] 3.2.6 [Lifetime of Variables](https://muhammadkaif.work/blog/embedded-c-roadmap#t-3-2-6): How long a variable exists: stack, static storage and the heap.

## 4. Pointers and Memory

*Phase 2: Pointers and memory*

### 4.1 Pointer Fundamentals

- [ ] 4.1.1 [Pointer Variable Declaration](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-1-1): Declaring a variable that holds an address, and reading pointer types correctly.
- [ ] 4.1.2 [Address Of Operator](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-1-2): &x gives the address of x: how you hand a buffer or variable to a function.
- [ ] 4.1.3 [Dereference Operator Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-1-3): *p reads or writes what a pointer points to, the core of register access.
- [ ] 4.1.4 [Null Pointers Initialization](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-1-4): Initialising pointers to NULL and checking before use.
- [ ] 4.1.5 [Void Pointers Application](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-1-5): void * as a type-agnostic pointer, and how generic APIs use it.
- [ ] 4.1.6 [Pointer Arithmetic Rules](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-1-6): Adding to a pointer moves by whole elements, which is how buffers are walked.

### 4.2 Advanced Pointers

- [ ] 4.2.1 [Pointers to Pointers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-2-1): A pointer to a pointer: output parameters and arrays of strings.
- [ ] 4.2.2 [Function Pointers Declaration](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-2-2): Storing a function's address so it can be called later, the basis of callbacks.
- [ ] 4.2.3 [Array of Function Pointers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-2-3): Tables of handlers, as in interrupt vector tables and command dispatchers.
- [ ] 4.2.4 [Generic Pointers Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-2-4): Writing code that works on any type through void * and callbacks.
- [ ] 4.2.5 [Const Qualifier with Pointers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-2-5): const char * versus char * const: promising not to modify data, and keeping tables in flash.
- [ ] 4.2.6 [Dangling Pointers Prevention](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-2-6): Pointers to memory that is gone: returning a local's address, use after free.

### 4.3 Dynamic Memory

- [ ] 4.3.1 [Stack Versus Heap](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-3-1): Where locals and dynamic memory live, and why a small stack overflows quietly.
- [ ] 4.3.2 [Malloc Function Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-3-2): Requesting heap memory at runtime, and why many firmware projects avoid it.
- [ ] 4.3.3 [Calloc Function Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-3-3): Allocating zero-initialised memory for arrays.
- [ ] 4.3.4 [Realloc Function Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-3-4): Resizing an allocation, and the fragmentation it can cause.
- [ ] 4.3.5 [Free Function Application](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-3-5): Releasing memory exactly once, and not touching it afterwards.
- [ ] 4.3.6 [Memory Leak Prevention](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-3-6): Finding and preventing leaks, which crash a long-running device after days.
- [ ] 4.3.7 [Heap Fragmentation](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-3-7): How repeated malloc and free leave the heap in small gaps, so a later allocation fails even with enough free bytes.
- [ ] 4.3.8 [Static Versus Dynamic Allocation](https://muhammadkaif.work/blog/embedded-c-roadmap#t-4-3-8): Fixed buffers and memory pools sized at build time versus heap allocation at run time, and why firmware prefers the first.

## 5. Derived Data Types

*Phase 2: Pointers and memory*

### 5.1 Arrays

- [ ] 5.1.1 [One Dimensional Arrays](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-1-1): Fixed-size sequences of one type: sample buffers, lookup tables and FIFOs.
- [ ] 5.1.2 [Multi Dimensional Arrays](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-1-2): Arrays of arrays for matrices and frames, and how they sit in memory row by row.
- [ ] 5.1.3 [Character Arrays Strings](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-1-3): Strings as null-terminated char arrays, and the safe-copy rules that follow.
- [ ] 5.1.4 [Arrays and Pointers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-1-4): Why an array name decays to a pointer, and what that means for sizeof and function calls.
- [ ] 5.1.5 [Passing Arrays to Functions](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-1-5): Handing a buffer and its length to a function, since the length is lost on the way.
- [ ] 5.1.6 [Array Bounds Safety](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-1-6): Staying inside the array: the root cause of many crashes and security holes.

### 5.2 Structures and Unions

- [ ] 5.2.1 [Structure Declaration Syntax](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-2-1): Grouping related fields, such as one sensor sample or one packet header.
- [ ] 5.2.2 [Structure Initialization Methods](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-2-2): Brace and designated initialisers, so every field starts in a known state.
- [ ] 5.2.3 [Nested Structures Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-2-3): Structures inside structures to mirror layered data such as frames and registers.
- [ ] 5.2.4 [Structure Pointers Application](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-2-4): The -> operator and passing structures by pointer instead of copying them.
- [ ] 5.2.5 [Union Declaration Syntax](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-2-5): Overlaying several views on the same bytes, such as a word and its four bytes.
- [ ] 5.2.6 [Union Memory Allocation](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-2-6): A union is as big as its largest member, and what that implies for portability.
- [ ] 5.2.7 [Linked Lists in C](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-2-7): Singly and doubly linked lists built from structures and pointers: insert, delete and walk without losing nodes.

### 5.3 Enumerations and Typedef

- [ ] 5.3.1 [Enum Declaration Syntax](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-3-1): Named integer constants for states, modes and error codes.
- [ ] 5.3.2 [Enum Constants Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-3-2): Using enums in switch statements and tables, and keeping the values explicit.
- [ ] 5.3.3 [Typedef Keyword Application](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-3-3): Naming a type once with typedef so the code reads like the problem.
- [ ] 5.3.4 [Custom Data Types](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-3-4): Building your own types, such as status_t or sample_t, for clearer interfaces.
- [ ] 5.3.5 [Bit Fields Definition](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-3-5): Packing several small fields into one word, and why their layout is compiler-defined.
- [ ] 5.3.6 [Code Readability Improvement](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-3-6): Using named types and constants so the next reader needs fewer comments.

### 5.4 Strings and Text Parsing

- [ ] 5.4.1 [String Library Functions](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-4-1): strlen, strcpy, strncpy, strcmp, strchr and strtok, and the buffer overruns each one can cause.
- [ ] 5.4.2 [Parsing Strings with sscanf](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-4-2): Reading numbers and fields out of text such as sensor or modem replies with sscanf, and checking its return value.
- [ ] 5.4.3 [Formatting Strings with snprintf](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-4-3): Building messages and log lines with sprintf, and why snprintf with the buffer size is the safe default.
- [ ] 5.4.4 [Parsing NMEA GPS Sentences](https://muhammadkaif.work/blog/embedded-c-roadmap#t-5-4-4): Splitting a GPS module's $GPRMC or $GPGGA lines into fields and checking the XOR checksum after the asterisk.

## 6. Advanced C Features

*Phase 2: Pointers and memory*

### 6.1 Preprocessor Macros

- [ ] 6.1.1 [Macro Definitions Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-6-1-1): #define for constants and simple substitutions, and why const or enum is often better.
- [ ] 6.1.2 [Parameterized Macros Design](https://muhammadkaif.work/blog/embedded-c-roadmap#t-6-1-2): Function-like macros: wrapping arguments in parentheses to avoid surprises.
- [ ] 6.1.3 [Conditional Compilation Directives](https://muhammadkaif.work/blog/embedded-c-roadmap#t-6-1-3): #ifdef and #if to build one codebase for several boards or debug and release.
- [ ] 6.1.4 [File Inclusion Mechanics](https://muhammadkaif.work/blog/embedded-c-roadmap#t-6-1-4): How #include works, include guards and keeping headers self-contained.
- [ ] 6.1.5 [Standard Predefined Macros](https://muhammadkaif.work/blog/embedded-c-roadmap#t-6-1-5): __FILE__, __LINE__ and friends for logging and assertions.
- [ ] 6.1.6 [Macro Pitfalls Avoidance](https://muhammadkaif.work/blog/embedded-c-roadmap#t-6-1-6): Double evaluation, missing parentheses and other macro traps.

### 6.2 Bit Manipulation

- [ ] 6.2.1 [Setting Bitwise Flags](https://muhammadkaif.work/blog/embedded-c-roadmap#t-6-2-1): Turning bits on with OR: reg |= (1u << n).
- [ ] 6.2.2 [Clearing Bitwise Flags](https://muhammadkaif.work/blog/embedded-c-roadmap#t-6-2-2): Turning bits off with AND and an inverted mask: reg &= ~(1u << n).
- [ ] 6.2.3 [Toggling Bit Values](https://muhammadkaif.work/blog/embedded-c-roadmap#t-6-2-3): Flipping bits with XOR, as in blinking an LED pin.
- [ ] 6.2.4 [Extracting Bit Fields](https://muhammadkaif.work/blog/embedded-c-roadmap#t-6-2-4): Shifting and masking to pull a field out of a register or a packet.
- [ ] 6.2.5 [Bitwise Shifting Operations](https://muhammadkaif.work/blog/embedded-c-roadmap#t-6-2-5): Left and right shifts, arithmetic versus logical, and fast multiply or divide by powers of two.
- [ ] 6.2.6 [Masking Techniques Application](https://muhammadkaif.work/blog/embedded-c-roadmap#t-6-2-6): Building masks and applying them to read-modify-write registers safely.

## 7. Microcontroller Architecture

*Phase 3: MCU and peripherals*

### 7.1 Core Components

- [ ] 7.1.1 [Central Processing Unit](https://muhammadkaif.work/blog/embedded-c-roadmap#t-7-1-1): What the core does: fetch, decode, execute, and the registers it works with.
- [ ] 7.1.2 [Harvard Versus Von Neumann](https://muhammadkaif.work/blog/embedded-c-roadmap#t-7-1-2): Separate or shared buses for code and data, and why Cortex-M and AVR differ.
- [ ] 7.1.3 [Memory Organization Structure](https://muhammadkaif.work/blog/embedded-c-roadmap#t-7-1-3): How flash, RAM and peripherals share one address space.
- [ ] 7.1.4 [Input Output Ports](https://muhammadkaif.work/blog/embedded-c-roadmap#t-7-1-4): Pins grouped into ports, and the registers that control them.
- [ ] 7.1.5 [Bus Architecture Basics](https://muhammadkaif.work/blog/embedded-c-roadmap#t-7-1-5): How the CPU, DMA and peripherals reach memory over the bus matrix.
- [ ] 7.1.6 [Clock Generation Systems](https://muhammadkaif.work/blog/embedded-c-roadmap#t-7-1-6): Oscillators, PLLs and dividers: where every peripheral's clock comes from.
- [ ] 7.1.7 [8-bit Versus 32-bit Microcontrollers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-7-1-7): What changes from an 8-bit AVR or PIC to a 32-bit Cortex-M: register width, address space, performance and cost.
- [ ] 7.1.8 [CISC Versus RISC and RISC-V](https://muhammadkaif.work/blog/embedded-c-roadmap#t-7-1-8): Complex versus reduced instruction sets, why Arm and RISC-V are RISC, and where RISC-V now appears in MCUs.

### 7.2 Memory Mapping

- [ ] 7.2.1 [Flash Memory Characteristics](https://muhammadkaif.work/blog/embedded-c-roadmap#t-7-2-1): Program storage that must be erased in pages and wears out after many cycles.
- [ ] 7.2.2 [Static Random Access Memory](https://muhammadkaif.work/blog/embedded-c-roadmap#t-7-2-2): Fast volatile memory for variables, the stack and the heap.
- [ ] 7.2.3 [Read Only Memory](https://muhammadkaif.work/blog/embedded-c-roadmap#t-7-2-3): Read-only data that never changes after programming, such as boot code.
- [ ] 7.2.4 [Memory Mapped Registers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-7-2-4): Peripheral control and status registers appearing as ordinary memory addresses.
- [ ] 7.2.5 [Absolute Addressing Methods](https://muhammadkaif.work/blog/embedded-c-roadmap#t-7-2-5): Placing data or pointers at fixed addresses, as in register definitions.
- [ ] 7.2.6 [Non Volatile Memory Storage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-7-2-6): EEPROM, flash emulation and other storage that survives a power cycle.
- [ ] 7.2.7 [Cache Memory](https://muhammadkaif.work/blog/embedded-c-roadmap#t-7-2-7): Instruction and data caches on faster MCUs such as Cortex-M7, and why DMA buffers then need cache maintenance.
- [ ] 7.2.8 [EEPROM and FRAM](https://muhammadkaif.work/blog/embedded-c-roadmap#t-7-2-8): Byte-writable non-volatile memory for settings and logs: EEPROM wear limits versus FRAM's fast, near-unlimited writes.

## 8. Peripheral Interfacing

*Phase 3: MCU and peripherals*

### 8.1 General Purpose Input Output

- [ ] 8.1.1 [Pin Configuration Registers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-8-1-1): Setting each pin's mode, speed and alternate function through registers.
- [ ] 8.1.2 [Digital Input Reading](https://muhammadkaif.work/blog/embedded-c-roadmap#t-8-1-2): Reading a button or a digital sensor, and the noise that comes with it.
- [ ] 8.1.3 [Digital Output Writing](https://muhammadkaif.work/blog/embedded-c-roadmap#t-8-1-3): Driving an LED or a control line high or low.
- [ ] 8.1.4 [Pull Up Resistors](https://muhammadkaif.work/blog/embedded-c-roadmap#t-8-1-4): Holding a floating input at a known high level.
- [ ] 8.1.5 [Pull Down Resistors](https://muhammadkaif.work/blog/embedded-c-roadmap#t-8-1-5): Holding a floating input at a known low level.
- [ ] 8.1.6 [Interrupt Pin Setup](https://muhammadkaif.work/blog/embedded-c-roadmap#t-8-1-6): Letting a pin edge trigger an interrupt instead of polling.

### 8.2 Communication Protocols

- [ ] 8.2.1 [Universal Asynchronous Receiver](https://muhammadkaif.work/blog/embedded-c-roadmap#t-8-2-1): Asynchronous serial with TX and RX: baud rate, framing and the console you debug with.
- [ ] 8.2.2 [Serial Peripheral Interface](https://muhammadkaif.work/blog/embedded-c-roadmap#t-8-2-2): A fast four-wire synchronous bus for displays, flash and sensors.
- [ ] 8.2.3 [Inter Integrated Circuit](https://muhammadkaif.work/blog/embedded-c-roadmap#t-8-2-3): A two-wire addressed bus for many slow sensors: pull-ups, ACK and clock stretching.
- [ ] 8.2.4 [Controller Area Network Bus](https://muhammadkaif.work/blog/embedded-c-roadmap#t-8-2-4): A differential, message-based bus used widely in vehicles and industrial gear.
- [ ] 8.2.5 [Universal Serial Bus Basics](https://muhammadkaif.work/blog/embedded-c-roadmap#t-8-2-5): Enumeration, endpoints and device classes: how a board talks to a PC.
- [ ] 8.2.6 [Transmission Timing Control](https://muhammadkaif.work/blog/embedded-c-roadmap#t-8-2-6): Clock polarity, setup and hold times, and reading a protocol on a logic analyser.
- [ ] 8.2.7 [Quad SPI (QSPI) Flash](https://muhammadkaif.work/blog/embedded-c-roadmap#t-8-2-7): Four data lines instead of one for fast external flash, often memory-mapped so code can run from it.

## 9. Hardware Abstraction

*Phase 3: MCU and peripherals*

### 9.1 Register Level Programming

- [ ] 9.1.1 [Reading Hardware Registers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-9-1-1): Reading a peripheral register through a volatile pointer.
- [ ] 9.1.2 [Writing Hardware Registers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-9-1-2): Writing a register, and the difference between write-only and read-modify-write.
- [ ] 9.1.3 [Bit Masking Registers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-9-1-3): Changing some bits of a register without disturbing the rest.
- [ ] 9.1.4 [Polling Status Flags](https://muhammadkaif.work/blog/embedded-c-roadmap#t-9-1-4): Waiting for a ready, done or error bit, with a timeout so it cannot hang.
- [ ] 9.1.5 [Delay Loops Implementation](https://muhammadkaif.work/blog/embedded-c-roadmap#t-9-1-5): Busy-wait delays, why they are inaccurate, and what to use instead.
- [ ] 9.1.6 [Hardware Initialization Sequence](https://muhammadkaif.work/blog/embedded-c-roadmap#t-9-1-6): Bringing clocks, pins and peripherals up in the right order after reset.

### 9.2 Abstraction Layers

- [ ] 9.2.1 [Driver Development Principles](https://muhammadkaif.work/blog/embedded-c-roadmap#t-9-2-1): A small, stable interface for each peripheral, hiding register details.
- [ ] 9.2.2 [Hardware Abstraction Layer](https://muhammadkaif.work/blog/embedded-c-roadmap#t-9-2-2): Vendor HAL layers (such as STM32 HAL) and when to use or skip them.
- [ ] 9.2.3 [Low Level Drivers Design](https://muhammadkaif.work/blog/embedded-c-roadmap#t-9-2-3): Thin register-level drivers that are small and fast.
- [ ] 9.2.4 [Interface Standardization](https://muhammadkaif.work/blog/embedded-c-roadmap#t-9-2-4): Giving different chips the same function names and behaviour.
- [ ] 9.2.5 [Portability Enhancement](https://muhammadkaif.work/blog/embedded-c-roadmap#t-9-2-5): Writing code that moves between boards with few changes.
- [ ] 9.2.6 [Configuration Structures Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-9-2-6): Passing settings to a driver in a structure instead of a long argument list.

## 10. Real Time Systems

*Phase 4: RTOS and real-time*

### 10.1 Interrupt Handling

- [ ] 10.1.1 [Interrupt Service Routines](https://muhammadkaif.work/blog/embedded-c-roadmap#t-10-1-1): Short handlers that run when hardware signals an event: keep them fast and let the main code do the work.
- [ ] 10.1.2 [Interrupt Vector Table](https://muhammadkaif.work/blog/embedded-c-roadmap#t-10-1-2): The table of handler addresses the core jumps through when an exception fires.
- [ ] 10.1.3 [Nested Interrupts Management](https://muhammadkaif.work/blog/embedded-c-roadmap#t-10-1-3): Letting a higher-priority interrupt preempt a lower one, and the stack depth it needs.
- [ ] 10.1.4 [Priority Configuration Rules](https://muhammadkaif.work/blog/embedded-c-roadmap#t-10-1-4): Choosing which interrupts may preempt which, so urgent work is never blocked.
- [ ] 10.1.5 [Shared Data Protection](https://muhammadkaif.work/blog/embedded-c-roadmap#t-10-1-5): Variables shared between an interrupt and the main loop: volatile, atomic access and short critical sections.
- [ ] 10.1.6 [Debouncing Switch Inputs](https://muhammadkaif.work/blog/embedded-c-roadmap#t-10-1-6): Cleaning up the bouncing of a mechanical switch in software or with a timer.

### 10.2 Concurrency Concepts

- [ ] 10.2.1 [Multitasking Fundamentals](https://muhammadkaif.work/blog/embedded-c-roadmap#t-10-2-1): Running several activities at once, from a super-loop to full task switching.
- [ ] 10.2.2 [Task Scheduling Basics](https://muhammadkaif.work/blog/embedded-c-roadmap#t-10-2-2): Round-robin, priority and time-slicing: how the next task is chosen.
- [ ] 10.2.3 [Critical Section Protection](https://muhammadkaif.work/blog/embedded-c-roadmap#t-10-2-3): Code that must not be interrupted or interleaved, and how to protect it.
- [ ] 10.2.4 [Race Conditions Prevention](https://muhammadkaif.work/blog/embedded-c-roadmap#t-10-2-4): Bugs that appear only when two contexts touch the same data in an unlucky order.
- [ ] 10.2.5 [Deadlock Avoidance Strategies](https://muhammadkaif.work/blog/embedded-c-roadmap#t-10-2-5): How tasks end up waiting on each other forever, and the rules that prevent it.
- [ ] 10.2.6 [Resource Sharing Mechanics](https://muhammadkaif.work/blog/embedded-c-roadmap#t-10-2-6): Sharing a peripheral, buffer or bus between tasks with mutual exclusion.

## 11. Debugging and Testing

*Phase 5: Professional and job-ready*

### 11.1 Debugging Techniques

- [ ] 11.1.1 [Hardware Debuggers Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-11-1-1): Using a probe such as ST-Link or J-Link with breakpoints, watchpoints and live variables.
- [ ] 11.1.2 [In Circuit Emulators](https://muhammadkaif.work/blog/embedded-c-roadmap#t-11-1-2): Hardware that stands in for the CPU to watch a target in real time.
- [ ] 11.1.3 [Serial Print Debugging](https://muhammadkaif.work/blog/embedded-c-roadmap#t-11-1-3): Logging over UART or semihosting, and its cost in time and code size.
- [ ] 11.1.4 [Toggle Pin Diagnostics](https://muhammadkaif.work/blog/embedded-c-roadmap#t-11-1-4): Toggling a spare pin around code and measuring it on a scope or logic analyser.
- [ ] 11.1.5 [Watchdog Timer Application](https://muhammadkaif.work/blog/embedded-c-roadmap#t-11-1-5): A hardware timer that resets the chip if the firmware stops responding.
- [ ] 11.1.6 [Fault Handlers Implementation](https://muhammadkaif.work/blog/embedded-c-roadmap#t-11-1-6): Catching HardFault and other exceptions and saving enough state to find the cause.

### 11.2 Code Verification

- [ ] 11.2.1 [Static Analysis Tools](https://muhammadkaif.work/blog/embedded-c-roadmap#t-11-2-1): Tools that find bugs in source without running it, such as compiler warnings, cppcheck and clang-tidy.
- [ ] 11.2.2 [Dynamic Testing Methods](https://muhammadkaif.work/blog/embedded-c-roadmap#t-11-2-2): Finding bugs by running the code: sanitizers, fault injection and hardware-in-the-loop tests.
- [ ] 11.2.3 [Unit Testing Frameworks](https://muhammadkaif.work/blog/embedded-c-roadmap#t-11-2-3): Unity, CMock, Ceedling and similar tools for testing C code on a PC or the target.
- [ ] 11.2.4 [Code Coverage Metrics](https://muhammadkaif.work/blog/embedded-c-roadmap#t-11-2-4): Measuring how much of the code your tests actually execute.
- [ ] 11.2.5 [Memory Inspection Tools](https://muhammadkaif.work/blog/embedded-c-roadmap#t-11-2-5): Reading RAM, stack usage and peripheral state while the target runs.
- [ ] 11.2.6 [Regression Testing Practices](https://muhammadkaif.work/blog/embedded-c-roadmap#t-11-2-6): Re-running old tests after every change so fixed bugs stay fixed.

## 12. Optimization and Safety

*Phase 5: Professional and job-ready*

### 12.1 Code Optimization

- [ ] 12.1.1 [Execution Speed Improvement](https://muhammadkaif.work/blog/embedded-c-roadmap#t-12-1-1): Profiling first, then fixing the hot loops, instead of guessing.
- [ ] 12.1.2 [Memory Footprint Reduction](https://muhammadkaif.work/blog/embedded-c-roadmap#t-12-1-2): Cutting flash and RAM use: data sizes, dead code and the linker's map file.
- [ ] 12.1.3 [Compiler Optimization Flags](https://muhammadkaif.work/blog/embedded-c-roadmap#t-12-1-3): -O0, -O2, -Os and friends: what each level changes and what it can expose.
- [ ] 12.1.4 [Volatile Keyword Usage](https://muhammadkaif.work/blog/embedded-c-roadmap#t-12-1-4): Telling the compiler a value can change behind its back, as hardware registers and ISR-shared variables do.
- [ ] 12.1.5 [Inline Assembly Integration](https://muhammadkaif.work/blog/embedded-c-roadmap#t-12-1-5): Embedding a few assembly instructions in C for things C cannot express.
- [ ] 12.1.6 [Power Consumption Reduction](https://muhammadkaif.work/blog/embedded-c-roadmap#t-12-1-6): Spending less energy through sleep modes, lower clocks and fewer wakeups.

### 12.2 Coding Standards

- [ ] 12.2.1 [Misra C Compliance](https://muhammadkaif.work/blog/embedded-c-roadmap#t-12-2-1): A widely used rule set for safe C in safety-critical products such as automotive and medical.
- [ ] 12.2.2 [Safe Coding Practices](https://muhammadkaif.work/blog/embedded-c-roadmap#t-12-2-2): Defensive habits: initialise everything, check return values, limit scope.
- [ ] 12.2.3 [Undefined Behavior Avoidance](https://muhammadkaif.work/blog/embedded-c-roadmap#t-12-2-3): Code the C standard does not define, such as signed overflow or out-of-range shifts, and how to avoid it.
- [ ] 12.2.4 [Code Review Guidelines](https://muhammadkaif.work/blog/embedded-c-roadmap#t-12-2-4): Reviewing changes for correctness, readability and the rules the team agreed on.
- [ ] 12.2.5 [Documentation Standards](https://muhammadkaif.work/blog/embedded-c-roadmap#t-12-2-5): Headers, API notes and design records that outlive the people who wrote them.
- [ ] 12.2.6 [Version Control Integration](https://muhammadkaif.work/blog/embedded-c-roadmap#t-12-2-6): Using Git with branches, small commits and tagged releases for firmware.

## 13. Toolchain and Build System

*Phase 3: MCU and peripherals*

### 13.1 Cross-Compilation Toolchain

- [ ] 13.1.1 [GCC ARM Toolchain](https://muhammadkaif.work/blog/embedded-c-roadmap#t-13-1-1): arm-none-eabi-gcc: compiling on a PC for a different processor.
- [ ] 13.1.2 [Object Files and ELF Format](https://muhammadkaif.work/blog/embedded-c-roadmap#t-13-1-2): The intermediate and final file formats your build produces, and how to inspect them.
- [ ] 13.1.3 [Linker Scripts](https://muhammadkaif.work/blog/embedded-c-roadmap#t-13-1-3): Telling the linker where flash and RAM are and which section goes where.
- [ ] 13.1.4 [Startup Code and Reset Handler](https://muhammadkaif.work/blog/embedded-c-roadmap#t-13-1-4): The code that runs after reset: set the stack, copy .data, zero .bss, then call main().
- [ ] 13.1.5 [Memory Sections (.text .data .bss)](https://muhammadkaif.work/blog/embedded-c-roadmap#t-13-1-5): Where code, initialised data and zero-initialised data end up in memory.
- [ ] 13.1.6 [Map Files and Binary Size Analysis](https://muhammadkaif.work/blog/embedded-c-roadmap#t-13-1-6): Reading the map file and size output to see what uses your flash and RAM.
- [ ] 13.1.7 [C Compilers Compared (GCC, Clang, IAR, Arm)](https://muhammadkaif.work/blog/embedded-c-roadmap#t-13-1-7): GCC, Clang, IAR and Arm Compiler (Keil): what differs in optimisation, extensions, licensing and certification.

### 13.2 Build Automation

- [ ] 13.2.1 [Makefiles](https://muhammadkaif.work/blog/embedded-c-roadmap#t-13-2-1): Describing how to build the project in a file so one command does it.
- [ ] 13.2.2 [CMake for Embedded](https://muhammadkaif.work/blog/embedded-c-roadmap#t-13-2-2): A cross-platform build generator widely used for firmware projects.
- [ ] 13.2.3 [Compiler Warnings and Flags](https://muhammadkaif.work/blog/embedded-c-roadmap#t-13-2-3): -Wall, -Wextra and friends: let the compiler catch mistakes early.
- [ ] 13.2.4 [Continuous Integration for Firmware](https://muhammadkaif.work/blog/embedded-c-roadmap#t-13-2-4): Building and testing every commit on a server, so broken firmware never lands.
- [ ] 13.2.5 [Multi-File Programs and Header Files](https://muhammadkaif.work/blog/embedded-c-roadmap#t-13-2-5): Splitting code into .c and .h files: declarations in headers, extern, include guards, and compiling and linking them.
- [ ] 13.2.6 [Embedded IDEs (Keil, STM32CubeIDE, VS Code)](https://muhammadkaif.work/blog/embedded-c-roadmap#t-13-2-6): Keil MDK, STM32CubeIDE and VS Code with extensions: projects, debugging and when each one fits.

## 14. ARM Cortex-M Deep Dive

*Phase 3: MCU and peripherals*

### 14.1 Core Architecture

- [ ] 14.1.1 [Cortex-M Programmer's Model](https://muhammadkaif.work/blog/embedded-c-roadmap#t-14-1-1): Registers, modes, the stack pointers and the thumb instruction set.
- [ ] 14.1.2 [NVIC](https://muhammadkaif.work/blog/embedded-c-roadmap#t-14-1-2): The Nested Vectored Interrupt Controller: enabling, prioritising and pending interrupts.
- [ ] 14.1.3 [SysTick Timer](https://muhammadkaif.work/blog/embedded-c-roadmap#t-14-1-3): The core's built-in tick timer, the usual heartbeat of an RTOS.
- [ ] 14.1.4 [Memory Protection Unit (MPU)](https://muhammadkaif.work/blog/embedded-c-roadmap#t-14-1-4): Restricting memory regions so a faulty task cannot corrupt others.
- [ ] 14.1.5 [Exceptions and Fault Registers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-14-1-5): HardFault, MemManage, BusFault and UsageFault, and the registers that tell you why.
- [ ] 14.1.6 [CMSIS Core and Device Headers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-14-1-6): Arm's standard core access layer and the vendor header files built on it.

## 15. Additional Peripherals

*Phase 3: MCU and peripherals*

### 15.1 Timers and Analog

- [ ] 15.1.1 [Hardware Timers and Counters](https://muhammadkaif.work/blog/embedded-c-roadmap#t-15-1-1): Counting clock ticks to measure time, generate periodic events and drive other peripherals.
- [ ] 15.1.2 [PWM (Pulse Width Modulation)](https://muhammadkaif.work/blog/embedded-c-roadmap#t-15-1-2): A square wave whose duty cycle sets the average power: LEDs, motors and buzzers.
- [ ] 15.1.3 [Input Capture and Output Compare](https://muhammadkaif.work/blog/embedded-c-roadmap#t-15-1-3): Timestamping external edges, and producing outputs at exact times.
- [ ] 15.1.4 [ADC (Analog-to-Digital Converter)](https://muhammadkaif.work/blog/embedded-c-roadmap#t-15-1-4): Turning a voltage into a number: resolution, sampling rate and reference voltage.
- [ ] 15.1.5 [DAC (Digital-to-Analog Converter)](https://muhammadkaif.work/blog/embedded-c-roadmap#t-15-1-5): Turning a number back into a voltage, for signals and bias levels.
- [ ] 15.1.6 [Real-Time Clock (RTC)](https://muhammadkaif.work/blog/embedded-c-roadmap#t-15-1-6): Keeping calendar time across sleep, often on a separate low-power clock.

### 15.2 Data Movement

- [ ] 15.2.1 [DMA (Direct Memory Access)](https://muhammadkaif.work/blog/embedded-c-roadmap#t-15-2-1): Moving data between memory and peripherals without the CPU copying every byte.
- [ ] 15.2.2 [Interrupt-Driven vs DMA I/O](https://muhammadkaif.work/blog/embedded-c-roadmap#t-15-2-2): Choosing between per-byte interrupts and block transfers, by throughput and CPU load.

## 16. RTOS and FreeRTOS

*Phase 4: RTOS and real-time*

### 16.1 RTOS Fundamentals

- [ ] 16.1.1 [What Is an RTOS](https://muhammadkaif.work/blog/embedded-c-roadmap#t-16-1-1): A scheduler that runs several tasks and meets timing deadlines, and when you need one.
- [ ] 16.1.2 [Context Switching](https://muhammadkaif.work/blog/embedded-c-roadmap#t-16-1-2): How the kernel saves one task's registers and restores another's.
- [ ] 16.1.3 [Priority Inversion](https://muhammadkaif.work/blog/embedded-c-roadmap#t-16-1-3): A low-priority task holding a lock a high-priority task needs, and how priority inheritance helps.
- [ ] 16.1.4 [Bare-Metal vs RTOS Trade-offs](https://muhammadkaif.work/blog/embedded-c-roadmap#t-16-1-4): When a super-loop is enough and when an RTOS pays for itself.

### 16.2 FreeRTOS

- [ ] 16.2.1 [FreeRTOS Tasks](https://muhammadkaif.work/blog/embedded-c-roadmap#t-16-2-1): Creating tasks with xTaskCreate, priorities, stack sizes and the task states.
- [ ] 16.2.2 [FreeRTOS Queues](https://muhammadkaif.work/blog/embedded-c-roadmap#t-16-2-2): Passing data between tasks and from interrupts safely.
- [ ] 16.2.3 [FreeRTOS Semaphores and Mutexes](https://muhammadkaif.work/blog/embedded-c-roadmap#t-16-2-3): Signalling and protecting shared resources, with priority inheritance on mutexes.
- [ ] 16.2.4 [FreeRTOS Software Timers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-16-2-4): Running a function after a delay or periodically, without a task of your own.
- [ ] 16.2.5 [FreeRTOS Event Groups and Task Notifications](https://muhammadkaif.work/blog/embedded-c-roadmap#t-16-2-5): Lightweight ways to signal one or several events to a task.
- [ ] 16.2.6 [FreeRTOS Memory Management (heap_1..5)](https://muhammadkaif.work/blog/embedded-c-roadmap#t-16-2-6): Choosing among the five heap implementations by determinism and fragmentation.
- [ ] 16.2.7 [FreeRTOS Interrupt Management (FromISR APIs)](https://muhammadkaif.work/blog/embedded-c-roadmap#t-16-2-7): The FromISR functions: the only calls safe inside an interrupt handler.
- [ ] 16.2.8 [Stack Overflow Detection](https://muhammadkaif.work/blog/embedded-c-roadmap#t-16-2-8): Detecting a task that ran past its stack, before it corrupts memory.

### 16.3 Other RTOSes

- [ ] 16.3.1 [Zephyr RTOS](https://muhammadkaif.work/blog/embedded-c-roadmap#t-16-3-1): A modern open-source RTOS with a large hardware and driver ecosystem.
- [ ] 16.3.2 [ThreadX / Azure RTOS](https://muhammadkaif.work/blog/embedded-c-roadmap#t-16-3-2): A commercial-grade RTOS, open source since it moved to the Eclipse Foundation.

## 17. Embedded Software Design

*Phase 4: RTOS and real-time*

### 17.1 Design Patterns

- [ ] 17.1.1 [Finite State Machines](https://muhammadkaif.work/blog/embedded-c-roadmap#t-17-1-1): Modelling behaviour as states and transitions: clear, testable and predictable.
- [ ] 17.1.2 [Event-Driven Architecture / Active Objects](https://muhammadkaif.work/blog/embedded-c-roadmap#t-17-1-2): Components that react to events and own their state, as in the active-object pattern.
- [ ] 17.1.3 [Ring (Circular) Buffers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-17-1-3): A fixed-size FIFO that decouples an interrupt or DMA producer from a consumer.
- [ ] 17.1.4 [Callbacks and Event Handlers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-17-1-4): Registering a function to be called when something happens.
- [ ] 17.1.5 [Modular / Layered Firmware Architecture](https://muhammadkaif.work/blog/embedded-c-roadmap#t-17-1-5): Splitting firmware into layers and modules with clear boundaries.

### 17.2 Data Representation

- [ ] 17.2.1 [Endianness](https://muhammadkaif.work/blog/embedded-c-roadmap#t-17-2-1): Byte order: why the same bytes mean different numbers on different systems.
- [ ] 17.2.2 [Structure Padding, Alignment and Packing](https://muhammadkaif.work/blog/embedded-c-roadmap#t-17-2-2): How the compiler inserts gaps for alignment, and when to pack structures.
- [ ] 17.2.3 [Two's Complement and Overflow](https://muhammadkaif.work/blog/embedded-c-roadmap#t-17-2-3): How signed integers are stored and what happens when they overflow.
- [ ] 17.2.4 [Fixed-Point Arithmetic](https://muhammadkaif.work/blog/embedded-c-roadmap#t-17-2-4): Doing fractional maths with integers on cores without an FPU.
- [ ] 17.2.5 [CRC and Checksums](https://muhammadkaif.work/blog/embedded-c-roadmap#t-17-2-5): Detecting corrupted data in packets and stored images.

## 18. Bootloaders, Updates and Security

*Phase 5: Professional and job-ready*

### 18.1 Boot and Update

- [ ] 18.1.1 [Bootloaders](https://muhammadkaif.work/blog/embedded-c-roadmap#t-18-1-1): A small program that starts first, checks the application and can load a new one.
- [ ] 18.1.2 [Firmware Over-the-Air (FOTA/OTA)](https://muhammadkaif.work/blog/embedded-c-roadmap#t-18-1-2): Updating deployed devices over the air, safely, with rollback if it fails.

### 18.2 Embedded Security

- [ ] 18.2.1 [Secure Boot](https://muhammadkaif.work/blog/embedded-c-roadmap#t-18-2-1): Only running firmware whose signature the chip trusts.
- [ ] 18.2.2 [Buffer Overflow and Stack Protection](https://muhammadkaif.work/blog/embedded-c-roadmap#t-18-2-2): How overflows are exploited, and defences such as stack canaries and bounds checks.
- [ ] 18.2.3 [Cryptography Basics for Firmware](https://muhammadkaif.work/blog/embedded-c-roadmap#t-18-2-3): Hashes, symmetric and public-key crypto, and the rule of never writing your own.

## 19. Low Power and Wireless

*Phase 5: Professional and job-ready*

### 19.1 Power Management

- [ ] 19.1.1 [Sleep and Deep-Sleep Modes](https://muhammadkaif.work/blog/embedded-c-roadmap#t-19-1-1): The chip's lower-power states, what stays alive in each and what wakes it.
- [ ] 19.1.2 [Clock Gating and Dynamic Frequency Scaling](https://muhammadkaif.work/blog/embedded-c-roadmap#t-19-1-2): Switching off unused peripheral clocks and running slower when you can.
- [ ] 19.1.3 [Measuring Current Consumption](https://muhammadkaif.work/blog/embedded-c-roadmap#t-19-1-3): Measuring microamps to milliamps with the right tool, and reading the result.

### 19.2 Wireless Connectivity

- [ ] 19.2.1 [Bluetooth Low Energy (BLE)](https://muhammadkaif.work/blog/embedded-c-roadmap#t-19-2-1): Low-energy radio for phones and wearables: advertising, connections and GATT.
- [ ] 19.2.2 [Wi-Fi and IoT Protocols (MQTT)](https://muhammadkaif.work/blog/embedded-c-roadmap#t-19-2-2): Getting a device onto Wi-Fi and publishing data with the MQTT messaging protocol.
- [ ] 19.2.3 [AT Commands for Modems](https://muhammadkaif.work/blog/embedded-c-roadmap#t-19-2-3): Driving cellular and Wi-Fi modems with text commands over UART: send, wait for OK or ERROR, and time out safely.
- [ ] 19.2.4 [CoAP Protocol](https://muhammadkaif.work/blog/embedded-c-roadmap#t-19-2-4): A light request and response protocol over UDP for constrained devices, compared with MQTT's publish and subscribe.

## 20. Hardware Skills for Firmware Engineers

*Phase 5: Professional and job-ready*

### 20.1 Reading Hardware

- [ ] 20.1.1 [Reading Datasheets and Reference Manuals](https://muhammadkaif.work/blog/embedded-c-roadmap#t-20-1-1): Finding the register map, timings and limits you need in the vendor's documents.
- [ ] 20.1.2 [Reading Schematics](https://muhammadkaif.work/blog/embedded-c-roadmap#t-20-1-2): Following pins, power rails and pull-ups on a circuit diagram.
- [ ] 20.1.3 [Logic Levels and Electrical Basics](https://muhammadkaif.work/blog/embedded-c-roadmap#t-20-1-3): Voltage levels, level shifting, current limits and why 3.3 V is not 5 V.

### 20.2 Lab Tools

- [ ] 20.2.1 [Logic Analyzer](https://muhammadkaif.work/blog/embedded-c-roadmap#t-20-2-1): Capturing digital signals and decoding UART, SPI and I2C traffic.
- [ ] 20.2.2 [Oscilloscope](https://muhammadkaif.work/blog/embedded-c-roadmap#t-20-2-2): Seeing analogue signals, noise and edges that a logic analyser cannot show.
- [ ] 20.2.3 [Multimeter](https://muhammadkaif.work/blog/embedded-c-roadmap#t-20-2-3): Checking continuity, voltage and current before blaming the code.

## 21. Embedded Linux (Next Step)

*Phase 5: Professional and job-ready*

### 21.1 Embedded Linux Basics

- [ ] 21.1.1 [Embedded Linux Overview](https://muhammadkaif.work/blog/embedded-c-roadmap#t-21-1-1): How Linux-based boards differ from microcontrollers, and when to move to them.
- [ ] 21.1.2 [Device Tree](https://muhammadkaif.work/blog/embedded-c-roadmap#t-21-1-2): Describing board hardware to the kernel in a data file.
- [ ] 21.1.3 [Linux Kernel Modules and Drivers](https://muhammadkaif.work/blog/embedded-c-roadmap#t-21-1-3): Writing code that loads into the kernel to drive hardware.
- [ ] 21.1.4 [Yocto / Buildroot](https://muhammadkaif.work/blog/embedded-c-roadmap#t-21-1-4): Build systems that produce a custom Linux image for your board.
