Embedded Build Systems with GNU Tools and Makefiles
No Integrated Developed Environment (IDE) used : just the command line, a text editor and makefiles.
Embedded Build Systems with GNU Tools and Makefiles
Build Arm Cortex-M firmware from the command line with GNU tools, linker scripts, startup code, and Make.

About this course
This course makes the build steps visible, from producing an object file to placing sections into microcontroller memory. It covers the GNU Arm toolchain, the linker script generated by STM32CubeIDE, and the code that runs when the target resets.
You’ll write your own linker script and startup file, automate the build with Make, and use GDB to flash the target. Later exercises add CMSIS and build assembly and C++ sources alongside C.
What you’ll be able to do
Explain the build and startup sequence
- Distinguish compilation, assembly, linking, and flashing.
- Explain how sections and symbols describe the placement of code and data.
- Describe how the startup file and reset handler use the linker’s layout.
- Explain why alignment affects the placement of sections in memory.
- Describe how targets, variables, and prerequisites make a Makefile repeatable.
- Explain the role of CMSIS in an Arm Cortex-M firmware project.
Build and verify the GNU toolchain workflow
- Compile and link an existing firmware project with the GNU Arm tools.
- Write a linker script that defines memory regions, sections, and symbols.
- Implement the startup file and verify the reset handler on hardware.
- Flash the target with a GDB client and validate the memory layout in use.
- Write and test a Makefile that builds C, assembly, and C++ sources.
- Integrate CMSIS and use semihosting to inspect ADC sensor data.
Course curriculum
Have you ever wondered what it is like to develop embedded firmware without using any IDE- just a simple text editor and the command line ?
This is dramatically different from any course you have ever taken because like many of my courses, this is more of a professional hands-on “field guide” to stm32 extreme bare metal firmware development. The reason why is because there’s no fluff or filler. It immediately gets down to the actual subject, showing you exactly what to do, how to do it, and why.
And you’ll immediately “get” the entire mythology I personally use to build firmware for consumer devices in my professional life.
It's About MORE Than Just Getting the Code to Work
So like I said, there’s more than just getting each piece of code to work.
The Reset_Handler is the first function to be executed when microcontroller comes out of reset. We will have to define this function in our C Startup file. We will also have to define the vector table in this same file.
All components on the microcontroller have an address range.To write to a component or read from a component you need to locate its address range in the documentation and properly define the addresses in your code.
Cortex-Microcontroller Interface Standard (CMSIS)CMSIS is a standard developed by Arm for all Cortex-Microcontrollers. This is the standard used in professional firmware development.
By the end of this course...
You Will Be Able To :
- Build complete firmware without using an Integrated Development Environment (IDE)
- Write your own Linker Script
- Write your own C Startup file
- Effectively apply GNU Bin Tools
- Effectively apply Build Systems like Make to your Embedded Development
- Effectively write your own Makefiles to automate the Build Process in your Embedded Projects
- Build every single line of code from scratch by writing to the microcontroller’s memory space directly.
- Use No third party libraries or header files
- Develop proficiency in your embedded development skills and confidently take the next steps
- Define addresses for the different peripherals
- Analyze the chip documentation
- Create registers from the addresses
Frequently Asked Questions
Course Curriculum
-
StartGetting the best out of this course
-
StartDownloading our Integrated Development Environment (IDE) for Control Experiment (2:34)
-
StartInstalling an Integrated Development Environment (IDE) for Control Experiment (2:38)
-
StartGetting the right Documentation for Bare-Metal Development (6:06)
-
StartProgramming : Locating the Ports and Pins of Components on the Nucleo board (8:01)
-
StartDefining Addresses of Modules using information from the Documentation (20:54)
-
StartProgramming : Creating required Registers using Information from Documentation (19:32)
-
StartProgramming : Configuring Pins using the Registers we Created (9:19)
-
StartProgramming : Creating Registers from Structure Members (20:49)
-
StartNotice
-
StartUnderstanding the Build Process (7:01)
-
StartOverview of Some GNU Bin Tools (9:06)
-
StartProgramming : Observing the Build Process from IDE Perspective (11:04)
-
StartCompiling and Linking Existing Source files using the GNU Arm Toolchain (15:21)
-
StartProgramming : Exploring the GNU Bin Tools - The Compiler (12:18)
-
StartProgramming : Exploring the GNU Bin Tools - Adding Options for Arm Cortex (9:20)
-
StartProgramming : Exploring the GNU Bin Tools - Stopping After Compilation (3:29)
-
StartProgramming : Exploring the GNU Bin Tools - Analyzing Object files (15:54)
Your Instructor
EmbeddedExpertIO represents a vibrant collective dedicated to the mastery of sophisticated embedded systems software development for professionals.
Our core objective is to equip individuals and organizations with the indispensable skills to thrive in the swiftly evolving embedded systems sector. We achieve this by providing immersive, hands-on education under the guidance of seasoned industry specialists. Our ambition is to emerge as the favored learning platform for embedded systems development professionals across the globe.