Skip to content

STM32duino loading bootloader

Your Name edited this page Oct 1, 2019 · 3 revisions

Loading the STM32duino bootloader

It is possible that your board came with the bootloader installed. If so, go to STM32duino using bootloader. Otherwise, follow the below steps to load it.

Goal

In most cases, you will be looking to load generic_boot20_pc13.bin on to your board such that afterwards you can use it with just a micro USB cable. Take the opportunity to download it right now.

Methods

There are a few methods to use a serial debugging connection to upload it, for now (as long as you find the license agreements, etc. acceptable) we will focus on using the STLink/Upload utility/STLink Driver. Just note that as per this post that although if you prefer to use the micro USB port to upload software to board installing the bootloader is the way to go but it is not as reliable as using, say, a programmer.

Download and install the STM32 ST-LINK Utility

Download the STM32 ST-LINK Utility you will need to create an st.com account. Run/install STM32 ST-LINK Utility v4.2.0 setup.exe DialogBox DialogBox DialogBox

Run the STM32 ST-LINK Utility

Select File -> Open
DialogBox Open generic_boot20_pc13.bin
DialogBox Connect the ST LINK V2 or similar to the board (note that the pinouts on clones are not all the same). The blue pill and associated clones Plug the ST LINK V2 or similar into the computer and select Target -> Program & Verify DialogBox Select Start:
DialogBox DialogBox Click on disconnect: DialogBox Eject the USB device. DialogBox Disconnect the ST LINK V2 or similar from the computer. Continue at STM32duino using bootloader.