UM0560 User manual STM8 bootloader

Introduces the features and operation of the STM8 bootloader


UM0560 User manual STM8 bootloader - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
User Manual
Language
English
Pages
75
File format
PDF
File size
1.1 MB
Published
20 October, 2023
Updated
20 October, 2023
MD5 checksum
59522603E34CA2CEA29D9F3BDD8B705F

About this manual

This document explains how to use the STM8 bootloader to program Flash, EEPROM, and RAM memory using standard serial interfaces. It covers activation, command sets, and peripheral configurations for various STM8 device groups. The bootloader is embedded in ROM and activates after reset, checking conditions before executing user code or continuing with programming.

The manual includes detailed sections on commands for reading, erasing, and writing memory, as well as speed and go commands. It also addresses limitations, such as UART baudrate calculation and ROP-protected device upgrades, and provides flowcharts and tables for bootloader versions and supported devices.

What's inside

  • Bootloader introduction
  • Peripheral settings
  • Bootloader command set
  • Error management
  • Programming time
  • Appendix A: How to upgrade ROP protected device
  • Appendix B: Bootloader entry points
  • Appendix C: SPI peripheral timing options
  • Appendix D: PC software support
  • Appendix E: Bootloader UART limitation

Specifications

Bootloader VersionTwo-digit BCD number (e.g., 0x21 = version 2.1)
Supported InterfacesLINUART/UART/USART, SPI, and CAN
Memory Types SupportedFlash program memory, data EEPROM, and RAM

Frequently asked questions

How do I activate the STM8 bootloader?

The bootloader activates after reset by checking certain address locations and executing based on whether the Flash memory is virgin or if specific option bytes allow modifications.

What interfaces can the STM8 bootloader use for programming?

It supports LINUART/UART/USART, SPI, and CAN interfaces for programming.

How do I determine the bootloader version?

Use the 'Get command' to retrieve the version, which is a two-digit BCD number (e.g., 0x21 = version 2.1).

Download PDF (1.1 MB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →