STM32Fx Microcontroller Custom Bootloader Development

Learn fundamentals of Bootloader Development for your ARM Cortex Mx based STM32Fx Microcontroller

  • 0.0 (0 Reviews)
  • 0 Students
  • 74 Lessons
  • FastBit Embedded Brain Academy

Course Overview

Get started with Micro-controller Bootloader Development.
This course will be suitable for beginners in the domain of embedded systems and programming.

This course is all about learning to develop a custom BootLoader for ARM CORTEX Mx powered STM32Fx microcontroller.

In this course, I will guide you through a step-by-step procedures to develop your own BootLoader and we will explore many things related to BootLoader programming.


The BootLoader we are going to develop in this course will have the following features

1) It can do in-application programming(IAP). You can use the BootLoader to flash a given application binary

2) Read microcontroller-specific data

3) Flash related configurations like setting up read and write protections for different sectors

4) Flash sector erase

5) Mass erase of the user flash

6) Read and display the protection status of the flash memory

7) Jump to the specified address to execute the code


Along with custom BootLoader development, you will also understand

1) The different memory organization of a microcontroller

2) Memory aliasing and different boot modes of STM32

3) How MCU boots after power-up

4) Vector table mapping and vector table relocation use case of arm cortex mx processor.

5) Difference between In-system programming(ISP) and in-application programming(IAP)

6) Custom boot loader design flow chart

7) Host and Boot loader communication method

8) Implementation of different boot loader commands


You can also extend this BootLoader by giving the following features once you complete the course

1) Encrypt and Decrypt the firmware sent by the host using AES

2) Over-the-air programming by interfacing WIFI or Zigbee Modules



Hardware used in this course:

In this course, STM32F446RE Nucleo board is used.

If you have any other board based on the STM32 microcontroller then also you can use the codes developed in the course with no or minor changes.


Software used:

1) KEIL-MDK-5 for WINDOWS

2) OpenSTM32 SystemWorkbench for (WINDOWS/LINUX/MAC OS)


Learning order of FastBit Embedded Brain Academy Courses,

If you are a beginner in the field of embedded systems, then you can take our courses in the below-mentioned order.
This is just a recommendation from the instructor for beginners.

1) Microcontroller Embedded C Programming: absolute beginners(Embedded C)

2) Embedded Systems Programming on ARM Cortex-M3/M4 Processor(ARM Cortex M4 Processor specific)

3) Mastering Microcontroller with Embedded Driver Development(MCU1)

4) Mastering Microcontroller: TIMERS, PWM, CAN, RTC,LOW POWER(MCU2)

5) Mastering Microcontroller: STM32-LTDC, LCD-TFT, LVGL(MCU3)

6) Embedded System Design using UML State Machines(State machine)

7) Mastering RTOS: Hands-on FreeRTOS and STM32Fx with Debugging(RTOS)

8) ARM Cortex M Microcontroller DMA Programming Demystified(DMA)

9) STM32Fx Microcontroller Custom Bootloader Development(Bootloader)

10) Embedded Linux Step by Step using Beaglebone Black(Linux)

11) Linux device driver programming using Beaglebone Black(LDD1)


Other programming courses

1) Master The Rust Programming Language : Beginner To Advanced

See more

FAQ

FAQ area empty

Course curriculum

23 chương 74 bài học 7 giờ 28 phút 7 bài học thử miễn phí
Chương 1 Course Overview
Chương 2 Introduction
Chương 3 MCU memory, Reset Sequence and Boot configs
Chương 4 Development board used in our courses
  • Note for the students
  • About MCU Development board 4:56
  • STM32F4 Discovery and Nucleo : Board Details 8:44
  • ST-Link Driver Installation 3:26
  • ST Link Firmware Upgrade 4:06
Chương 5 KEIL-MDK-5 IDE setup for ARM Cortex M based MCUs
  • Note for the students
  • KEIL-MDK-5 Installation 7:49
  • KEIL-MDK-5 Installation Contd. 2:36
  • KEIL-MDK-5 Pack Installation 12:59
  • Locating Pack Installation files 3:05
  • Creating a KEIL Project 12:11
  • Creating a LED Toggling App using Board BSP APIs 17:34
  • Creating a LED Toggling App using Board BSP APIs-Nucleo 5:57
Chương 6 Installing OpenSTM32 System-Workbench
  • Downloading and Installing OpenSTM32 System-Workbench 5:42
  • Installing OpenSTM32 System-Workbench 4:52
Chương 7 STM32CubeMX
  • Note for the students
  • STM32CubeMX Installation 4:11
Chương 8 Exploring STM32 Native Bootloader
  • Activating ST’s Bootloader Part-1 5:13
  • Activating ST’s Bootloader Part-2 3:06
  • Activating ST’s Bootloader Part-3 5:59
  • Activating ST’s Bootloader Part-4 6:54
Chương 9 Custom Bootloader Communication with HOST
  • Bootloader Transport 3:08
  • Bootloader code placement 1:45
  • Bootloader Supported Commands 3:39
  • Host – Bootloader Communication 3:58
Chương 10 Boot-Loader Project Creation
  • Boot-Loader Project Creation 11:57
  • Bootloader Project Exploration Part-1 6:30
Chương 11 Boot-Loader UART Testing
  • Command UART testing 10:28
  • Debug UART Testing 8:27
Chương 12 Boot-loader Jumping to User Code
  • Boot-loader Jumping to User application Part-1 8:45
  • Boot-loader Jumping to User application Part-2 7:36
  • Boot-loader Jumping to User application Part-3 5:11
  • Flash Code Placement using OpenSTM32 System Workbench 4:09
  • Vector Table offset Register(VTOR) use case 5:03
  • Boot-loader Jumping to User application Part-4 11:47
Chương 13 Boot-loader Read Commands from Host
  • Boot-loader command format 14:07
  • Boot-loader read commands implementation 9:06
  • Command Handle Functions Implementation 1:54
Chương 14 Implementing BL_GET_VER Command
  • Boot-loader Command Handling Flow-Chart 4:34
  • BL_GET_VER Handle Function Implementation 2:11
  • Boot-Loader ACK/NACK Implementation 3:46
  • Boot-Loader Verify CRC 8:59
  • Sending BL_GET_VER_CMD Reply 3:19
  • BL_GET_VER_CMD Testing Part-1 4:27
  • Python Installation on Host 2:32
  • Python Pyserial module installation 2:31
  • BL_GET_VER_CMD Testing Part-2 5:31
  • BL_GET_VER_CMD Debugging 6:30
Chương 15 Implementing BL_GET_HELP_CMD
  • BL_GET_HELP_CMD Implementation and Testing 3:04
Chương 16 Implementing BL_GET_CID_CMD
  • BL_GET_CID_CMD Implementation and Testing 6:34
Chương 17 Implementing BL_GET_RDP_LEVEL_CMD
  • Understanding Flash Read Protection Levels 12:06
  • BL_GET_RDP_LEVEL Command Testing 5:14
Chương 18 Implementing BL_GET_GO_TO_ADDR_CMD
  • BL_GO_TO_ADDR Command Implementation 4:29
  • BL_GO_TO_ADDR Command Testing 5:35
Chương 19 Implementing BL_FLASH_ERASE_CMD
  • BL_FLASH_ERASE Command Implementation 2:43
  • BL_FLASH_ERASE Command Implementation contd. 10:44
  • Testing Flash Sector Erase 4:42
  • Testing Flash Mass Erase 4:04
Chương 20 Implementing BL_MEM_WRITE_CMD
  • BL_MEM_WRITE Commadn Implementation 14:04
  • BL_MEM_WRITE Command Testing 6:26
Chương 21 Options Bytes and Flash Sector Protection
  • Options Bytes Programming 17:13
  • Implementing Flash Sector Protection Commands 13:47
  • Summary of the commands 3:47
Chương 22 Exploring HOST Application
  • HOST application Source files and Details 5:19
  • Procedure to Add your own command 10:43
Chương 23 BONUS LECTURE
  • BONUS LECTURE

Requirment

  • STM32Fx based board is needed if you want to test the code developed

  • Basic 'C' Programming Knowledge is required but not mandatory

Outcomes

  • Write your own custom bootloader for your STM32Fx microcontroller and test

  • Host Bootloader Communication implementation

  • Custom Bootloader command packets

  • Different boot modes of the STM32 Microcontroller

  • Boot loader flash handling implementation : Sector Erase/Program/Mass erase

  • Boot loader options bytes(OB) Program handling implementation

  • Boot loader Flash sector protection status handling implementation

  • Boot loader In application programming implementation (IAP)

  • Vector table relocation of ARM cortex Mx processor

Instructor

...
FastBit Embedded Brain Academy

0.0

  • ... 0 Student
  • ... 8 Courses
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all