The STM32 microcontroller chips include a UART bootloader that will cause the chip to switch to boot mode if pin BOOT is set high, making updating the program quick and easy by using stm32 flash loader demonstrator. More information on the flash loader software, refer to user manual UM0462 from ST Microelectronic websites.