STM32 Bootloader
Customizable Bootloader for STM32 microcontrollers
Bootloader Configuration

Macros

#define STM32L4
 
#define USE_CHECKSUM   0
 
#define USE_WRITE_PROTECTION   0
 
#define SET_VECTOR_TABLE   1
 
#define CLEAR_RESET_FLAGS   1
 
#define APP_ADDRESS   (uint32_t)0x08008000
 
#define END_ADDRESS   (uint32_t)0x080FFFFB
 
#define CRC_ADDRESS   (uint32_t)0x080FFFFC
 
#define SYSMEM_ADDRESS   (uint32_t)0x1FFF0000
 

Detailed Description

Bootloader Configuration

Macro Definition Documentation

◆ APP_ADDRESS

#define APP_ADDRESS   (uint32_t)0x08008000

Start address of application space in flash

Definition at line 48 of file bootloader.h.

◆ CLEAR_RESET_FLAGS

#define CLEAR_RESET_FLAGS   1

Clear reset flags

  • If enabled: bootloader clears reset flags. (This occurs only when OBL RST flag is active.)
  • If disabled: bootloader does not clear reset flags, not even when OBL RST is active.

Definition at line 45 of file bootloader.h.

◆ CRC_ADDRESS

#define CRC_ADDRESS   (uint32_t)0x080FFFFC

Start address of application checksum in flash

Definition at line 54 of file bootloader.h.

◆ END_ADDRESS

#define END_ADDRESS   (uint32_t)0x080FFFFB

End address of application space (address of last byte)

Definition at line 51 of file bootloader.h.

◆ SET_VECTOR_TABLE

#define SET_VECTOR_TABLE   1

Automatically set vector table location before launching application

Definition at line 37 of file bootloader.h.

◆ STM32L4

#define STM32L4

Select target MCU family: please define the target MCU family type below. Currently supported MCU families:

  • STM32L4

Definition at line 28 of file bootloader.h.

◆ SYSMEM_ADDRESS

#define SYSMEM_ADDRESS   (uint32_t)0x1FFF0000

Address of System Memory (ST Bootloader)

Definition at line 57 of file bootloader.h.

◆ USE_CHECKSUM

#define USE_CHECKSUM   0

Check application checksum on startup

Definition at line 31 of file bootloader.h.

◆ USE_WRITE_PROTECTION

#define USE_WRITE_PROTECTION   0

Enable write protection after performing in-app-programming

Definition at line 34 of file bootloader.h.