STM32 Bootloader
Customizable Bootloader for STM32 microcontrollers
bootloader.h File Reference

This file contains the bootloader configuration parameters, function prototypes, and other required definitions. More...

#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Macros

#define USE_WRITE_PROTECTION   0
 
#define CLEAR_RESET_FLAGS   1
 
#define APP_FILE_NAME   "app-demo.bin"
 
#define CRC_FILE_NAME   "app-demo.crc"
 
#define APP_ADDRESS   ((uint32_t)&LINKER_APP_AREA_ORIGIN)
 
#define APP_SIZE   ((uint32_t)&LINKER_APP_AREA_LENGTH)
 

Functions

bool BootloaderUpdateFirmware (void)
 This function performs the complete application update procedure. More...
 
bool BootloaderCheckForApplication (void)
 This function checks whether a valid application exists in flash. More...
 
void BootloaderJumpToApplication (void)
 This function performs the jump to the user application in flash. More...
 
void BootloaderJumpToSysMem (void)
 This function performs the jump to the microcontroller System Memory (ST built-in bootloader). More...
 

Variables

const uint32_t LINKER_APP_AREA_ORIGIN
 
const uint32_t LINKER_APP_AREA_LENGTH
 

Detailed Description

This file contains the bootloader configuration parameters, function prototypes, and other required definitions.

STM32 Bootloader

Author
Akos Pasztor

Definition in file bootloader.h.