Embedded Firmware Fundamentals

From the memory map to field updates: how software runs on a microcontroller

A step-by-step introduction to embedded firmware for programmers who are new to hardware. Learn how a microcontroller is organised, how code is built and flashed, how to drive peripherals, how interrupts and tasks share the processor, and how to keep devices reliable, efficient and updatable.

Beginner · 5 modules · 18 lessons · free certificate

About this course

Firmware is software with no operating system to hide the hardware. It starts at power-on, talks to the chip through registers, has kilobytes rather than gigabytes to work with, and must keep running correctly for years. Programmers who are comfortable on a PC often find that the language is familiar but the rules are not. This course explains those rules in order, starting from what is physically inside a microcontroller.

We use the Arm Cortex-M family as a concrete reference because it is widely used and well documented, and we point out where details differ between vendors. The ideas carry over to other architectures. Each module ends with a short quiz that checks understanding rather than memory.

By the end you will be able to read a reference manual with purpose, follow what happens between reset and main, write interrupt handlers that do not corrupt shared data, choose between a super loop and an RTOS, and plan for watchdogs, low power, field updates and testing.

Before you start: Comfortable programming in C or a similar language, including pointers and bitwise operators. Basic electronics such as voltage, current and resistance helps but is not required. No embedded experience is assumed.

What you will learn

  • Describe how a microcontroller is organised and read its memory map
  • Explain each stage of the build, from compiler and linker to startup code and flashing over SWD or JTAG
  • Configure GPIO, timers, the ADC and the common serial buses at a practical level
  • Write short interrupt handlers and protect data shared with them
  • Choose between a super loop and an RTOS for a given set of requirements
  • Plan for watchdogs, brown-out, sleep modes, bootloaders, testing and logging

Who it is for

  • Software developers who can program in C or a similar language and want to move into embedded work
  • Electronics engineers and students who want a structured grounding in firmware
  • Hardware designers who want to understand what the firmware team needs from a board
  • Technical leads and product managers who review embedded projects

Syllabus

Module 1: Microcontrollers and Firmware

What firmware is, what is inside a microcontroller, and how the memory map ties it all together.

  1. What Firmware Is and How It Differs
  2. Inside a Microcontroller
  3. The Memory Map, Registers and Reset
  4. Module quiz (5 questions)

Module 2: The Toolchain: From Source to Running Code

How source code becomes an image in flash, what runs before main, and how to program and debug a chip.

  1. Cross-Compiling and Linking
  2. Startup Code: What Runs Before main
  3. Flashing and Debugging over SWD and JTAG
  4. Module quiz (5 questions)

Module 3: Talking to Hardware

Using GPIO, timers, the ADC and the UART, I2C and SPI buses at a practical level.

  1. GPIO: Pins In and Out
  2. Timers, Time Bases and PWM
  3. Reading Analogue Signals with the ADC
  4. UART, I2C and SPI in Practice
  5. Module quiz (5 questions)

Module 4: Interrupts, Timing and Concurrency

How interrupts work on Cortex-M, how to set priorities, how to share data safely, and when to move from a super loop to an RTOS.

  1. How Interrupts Work
  2. Priorities, Nesting and Latency
  3. Shared Data, volatile and Critical Sections
  4. The Super Loop and RTOS Tasks
  5. Module quiz (5 questions)

Module 5: Reliability, Power, Updates and Testing

Keeping devices running with watchdogs and brown-out reset, saving power with sleep modes, updating firmware safely, and testing and logging effectively.

  1. Watchdogs, Brown-Out and Safe Recovery
  2. Sleep Modes and Low-Power Firmware
  3. Bootloaders and Field Updates
  4. Testing Off Target and Logging
  5. Module quiz (5 questions)

Free downloads for this course

Enrol for free

Discuss your project

Email support@aavico.com or use Get in Touch when the website finishes loading.