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.
- What Firmware Is and How It Differs
- Inside a Microcontroller
- The Memory Map, Registers and Reset
- 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.
- Cross-Compiling and Linking
- Startup Code: What Runs Before main
- Flashing and Debugging over SWD and JTAG
- 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.
- GPIO: Pins In and Out
- Timers, Time Bases and PWM
- Reading Analogue Signals with the ADC
- UART, I2C and SPI in Practice
- 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.
- How Interrupts Work
- Priorities, Nesting and Latency
- Shared Data, volatile and Critical Sections
- The Super Loop and RTOS Tasks
- 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.
- Watchdogs, Brown-Out and Safe Recovery
- Sleep Modes and Low-Power Firmware
- Bootloaders and Field Updates
- Testing Off Target and Logging
- Module quiz (5 questions)
Free downloads for this course
- Board Bring-up Checklist (Checklist)
- Firmware Release Checklist (Checklist)
- Embedded C Cheat Sheet (Cheat sheet)
Discuss your project
Email support@aavico.com or use Get in Touch when the website finishes loading.