Description
sboot_stm32 is a secure USB DFU 1.1 bootloader for STM32 microcontrollers. It works with dfu-util and is built to fit in a 4 KB ROM segment, a little larger when encryption is enabled. Firmware can be encrypted with several ciphers, including ARCFOUR, ChaCha20, RC5, RC6, MAGMA, RAIDEN, SPECK, XTEA, RTEA, Blowfish and AES, in modes such as ECB, CBC, CFB, OFB and CTR. Firmware can be checked with CRC32, CRC64, FNV-1A-32 or FNV-1A-64. The project includes software for encrypting and decrypting firmware, and separate interfaces for flash and EEPROM programming. Supported STM32 families include the F0, F1, F3, F4, G4 and several L series parts. The autoseal option sets read-out protection level 1 or 2 so decrypted firmware cannot be read through the debug interface. The README warns that level 2 is irreversible and disables all debug functions and option byte programming. To build, you need GNU make and the arm-none-eabi-gcc toolchain, plus CMSIS, and you configure the bootloader through make parameters described in CONFIG.md.…
Highlights
- USB DFU 1.1 bootloader that works with dfu-util
- Fits in a 4 KB ROM segment
- Firmware encryption with many block and stream ciphers
- CRC and FNV firmware verification
- Autoseal read protection at RDP level 1 or 2
Ratings & Reviews
No ratings yet
Be the first to rate Sboot Stm32.
People also visit

embedded-systems
Developing firmware for microcontrollers, implementing RTOS applications
Sboot Stm32 FAQ
What does sboot_stm32 do?
It is a USB DFU 1.1 bootloader for STM32 chips that can receive firmware updates and optionally decrypt and verify them.
Which chips are supported?
The README lists STM32L0x2, L1xx, L476xx, F103, F105/F107, F0, F3, F4 and G4 series.
What do I need to build it?
GNU make, the arm-none-eabi-gcc toolchain version 4.9 or later, a gcc toolchain for the firmware encryption software, and CMSIS V4 or V5.
Is the read protection reversible?
Not at level 2. The README says that setting RDP level 2 is irreversible and disables all debug functions and option byte programming. Level 1 is the less drastic option.
What are the best Sboot Stm32 alternatives?
Popular alternatives to Sboot Stm32 include AVGVSTO-USB, Easy2Boot and App. See all Sboot Stm32 alternatives




