Embedded Bootloader Development from Ground Up™
Build a register-level STM32 bootloader that starts applications and selects between multiple image slots.

About this course
This course follows the boot sequence from the memory map and linker script to the point where an application takes control. It explains why firmware needs a bootloader, how the images are laid out, and where application and boot code can share functions.
You’ll implement a jump to a user application and use UART commands in the final multi-slot bootloader project. The practical work ties linker changes to the addresses and functions used by the running device.
Read moreShow less
Get ready to dive into the exciting world of bootloader development with this beginner level course of our bootloader development series on STM32 microcontrollers.
Throughout this beginner-friendly course, you will explore the fundamentals of bootloader development, from the build process to the memory model and beyond.
Through a number of bite-sized modules, you will learn how to create custom bootloaders that enable you to take control of your firmware and unlock the full potential of your STM32 microcontrollers. You will gain understanding of the embedded build process, the STM32F4 memory model, and the critical role of linkerscripts and the linking process.
In addition to theory, you will get hands-on experience working with the linkerscript; creating custom sections, and defining memory regions etc.
But that's not all - you'll also have the opportunity to get further hands-on experience with linkerscripts and design and develop your own bootloader. And in the final project, you'll apply your newfound knowledge to create a multi-slot memory system bootloader which is capable of storing multiple firmware applications on the same microcontroller, implement a push-button trigger for entering bootloader mode, and develop a simple communication driver for selecting different firmware applications stored in memory.
By the end of this course, you'll have the skills and knowledge needed to confidently develop custom bootloaders for STM32 microcontrollers, opening up new possibilities for firmware updates, recovery, security, and customization.
With the flexible online format, you can study at your own pace, from anywhere in the world. Plus, we offer a 30-day money-back guarantee, so you can enroll with confidence.
- What is a boot loader?
- Why is it needed?
- Overview of the Embedded Build Process
- A closer look at the Embedded Build Process
- Overview of the STM32F4 Memory Model
- Understanding the Linkerscript and Linking Process
- Analyzing the Linkerscript and Memory Layout
- Creating SECTIONS in the Linkerscript
- Defining custom MEMORY Regions
- Storing functions in Custom Sections
- Implementing the Jump-to-Application function
- Implementing the Default Application
- Sharing functions between the Bootloader and User Application
- Receiving UART Commands
- Designing the System
- Implementing the Multi-Slot Bootloader System
What you’ll be able to do
Explain boot and application handoff
- Explain when a bootloader is useful in an embedded system.
- Describe how the firmware build produces the memory layout a bootloader relies on.
- Explain how linker sections separate the bootloader and each application image.
- Identify what the bootloader needs to find before handing control to an application.
- Describe the interface needed to share functions between boot and application code.
- Explain how command-driven selection differs from a fixed application entry point.
Build a multi-slot bootloader
- Develop the UART driver used for command handling.
- Inspect the linker script and add sections for the bootloader and user application.
- Implement the function that transfers control to the user application.
- Set up shared functions and exercise them from both images.
- Receive and interpret UART commands from the bootloader.
- Build the multi-slot project and test the application handoff.
Course curriculum
Embedded Bootloader Development from Ground Up™
Essentials of Custom Bootloader Development
Course Curriculum
-
StartImportant information about this section
-
StartProgramming : Enabling the Floating Point Unit (FPU) (18:00)
-
StartProgramming : Developing a UART Driver - Analyzing the Documentation (11:35)
-
StartProgramming : Developing a UART Driver - Listing out the steps (4:00)
-
StartProgramming : Developing a UART Driver - Implementing the Initialization functi (22:13)
-
StartProgramming : Developing a UART Driver - Implementing the Write function (5:39)
-
StartProgramming : Developing a UART Driver - Testing the Driver (6:39)
-
StartProgramming : Developing the System Timebase - Analyzing the Documentation (8:28)
-
StartProgramming : Developing the System Timebase - Implementing the Init. function (9:52)
-
StartProgramming : Developing the System Timebase - The rest of the functions (12:15)
-
StartProgramming : Developing the System Timebase - Testing the Timebase (5:34)
-
StartProgramming : Developing a BSP for the Dev Board - Required functions (7:55)
-
StartProgramming : Developing a BSP for the Dev Board - The LED Driver (5:01)
-
StartProgramming : Developing a BSP for the Dev Board - The Button Driver (4:00)
-
StartProgramming : Developing a BSP for the Dev Board - Testing the BSP (3:35)
Get ready to dive into the exciting world of bootloader development with this beginner level course of our bootloader development series on STM32 microcontrollers.
Throughout this beginner-friendly course, you will explore the fundamentals of bootloader development, from the build process to the memory model and beyond.
Through a number of bite-sized modules, you will learn how to create custom bootloaders that enable you to take control of your firmware and unlock the full potential of your STM32 microcontrollers. You will gain understanding of the embedded build process, the STM32F4 memory model, and the critical role of linkerscripts and the linking process.
In addition to theory, you will get hands-on experience working with the linkerscript; creating custom sections, and defining memory regions etc.
But that's not all - you'll also have the opportunity to get further hands-on experience with linkerscripts and design and develop your own bootloader. And in the final project, you'll apply your newfound knowledge to create a multi-slot memory system bootloader which is capable of storing multiple firmware applications on the same microcontroller, implement a push-button trigger for entering bootloader mode, and develop a simple communication driver for selecting different firmware applications stored in memory.
By the end of this course, you'll have the skills and knowledge needed to confidently develop custom bootloaders for STM32 microcontrollers, opening up new possibilities for firmware updates, recovery, security, and customization.
With the flexible online format, you can study at your own pace, from anywhere in the world. Plus, we offer a 30-day money-back guarantee, so you can enroll with confidence.
- What is a boot loader?
- Why is it needed?
- Overview of the Embedded Build Process
- A closer look at the Embedded Build Process
- Overview of the STM32F4 Memory Model
- Understanding the Linkerscript and Linking Process
- Analyzing the Linkerscript and Memory Layout
- Creating SECTIONS in the Linkerscript
- Defining custom MEMORY Regions
- Storing functions in Custom Sections
- Implementing the Jump-to-Application function
- Implementing the Default Application
- Sharing functions between the Bootloader and User Application
- Receiving UART Commands
- Designing the System
- Implementing the Multi-Slot Bootloader System
Frequently Asked Questions
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.