STM32 ISP Programmer

Flash STM32 microcontrollers (C0, F0, F1, F2, F3, F4, F7, G0, G4, H5, H7, L0, L1, L4, L5, U5, WB, WL) with a cheap USB-to-serial converter and the UART bootloader built into every chip. Write BIN and HEX files, erase, lock and unlock the chip.

Firmware

    Put the chip into bootloader mode, choose Flash firmware and select the converter's serial port. A locked chip is unlocked first. The chip is erased, the firmware written and verified byte by byte, and the chip starts it.

    Chip

    Shows the chip, bootloader version, flash size, read protection and option bytes. The chip stays in bootloader mode.

    Erases the whole flash (mass erase, page by page on STM32L0/L1).

    Removes the read protection. This erases the flash and resets the chip.

    Sets read protection level 1. The flash can then not be read until the chip is unlocked (and erased).

    More actions

    Saves the whole flash of an unlocked chip as a BIN file.

    STM32C0/G0: clears nBOOT_SEL in the option bytes, so that the BOOT0 pin starts the bootloader again (new chips boot from an empty flash into the bootloader, but not once it has been written).

    Clears the write protection of all flash pages or sectors. The chip resets.

    Wiring and bootloader mode

    Connect the converter to the bootloader USART of the chip (3.3 V logic; USART1 on PA9/PA10 works on every supported chip, the other pins are listed below):

    Converter   STM32
       RXD  <-- PA9  (USART1 TX)
       TXD  --> PA10 (USART1 RX)
       3V3  --> VDD
       GND  --> GND

    Then start the bootloader in ONE of these ways:

    • With BOOT0: pull BOOT0 to VDD (hold the BOOT button), briefly pull nRST to GND or power-cycle the chip, then release BOOT0. STM32F1/F2/F4 also need BOOT1 (PB2) at GND.
    • New STM32C0/G0: a chip with an empty flash starts the bootloader by itself. After the first flashing the app enables the BOOT0 pin (option, on by default), otherwise the bootloader could only be reached again over SWD.
    • Automatically: with a converter whose RTS line is wired to nRST and DTR to BOOT0, the app starts the bootloader by itself and resets the chip afterwards.

    Many dev boards (Blue Pill, Black Pill, Nucleo with the ST-LINK as converter) have a BOOT0 jumper or button for this.

    Supported chips

    The app recognizes the chip by the product ID its bootloader reports. Flash size: the largest chip of the line; the app reads the real size from the chip. The list is the one of stm32isp.

    Chip linePIDFlashBootloader USART (TX/RX)