Skip to content

Instantly share code, notes, and snippets.

View simondlevy's full-sized avatar

Simon D. Levy simondlevy

View GitHub Profile
@gonzabrusco
gonzabrusco / stm32bootloader.md
Last active October 9, 2025 22:03
How to Jump to the STM32 Bootloader and Return to the Application.

How to Jump to the STM32 Bootloader and Return to the Application

Disclaimer: This guide was tested on an STM32G070CB, but with minor adjustments, it should work for most STM32 models.

Entering the Bootloader

To jump to the STM32 Bootloader from your running application, simply call the following function:

#define BOOTLOADER_ADDR 0x1FFF0000 // Bootloader start address (refer to AN2606). STM32 family-dependent.