STM32 USB Bootloader Upgrade:
Post date: Jul 04, 2020 8:7:37 AM
Step1: install STM32 Cube Programmer https://www.st.com/en/development-tools/stm32cubeprog.html
Step2: copy the stm32 json adresse into arduin0/preference/Aditional Board manager URL's https://raw.githubusercontent.com/stm32duino/BoardManagerFiles/master/STM32/package_stm_index.json
Step3: Install STM32 from the board manager.
Step4: Download stm32_binaries.zip file from https://github.com/Serasidis/STM32_HID_Bootloader/releases
Step5 connect your Blue pill board with your FTDI adapter as described in STM32 Blue Pill
Diagram:
Step7: Connect your serial adapter to your computer
Step8: Position the jumper of the blue pill board to programming mode and reset the board.
Step9: Open Stm32Cubeprogrammer and connect to the board via UART
Step10: Click on the programming icon on the left side and select the file \stm32_binaries\F103\low_and_medium_density\hid_generic_pc13.bin from the downloaded file.
Step11: Click "Start Programming".
Step12: Move back the jumper on the blue pill board to "0" position before you remove power or restart the board
Programming the board via USB:
Step1: Select the board STM321 series from the board menu
Step2: Select Blue pill U{S)ART support to Enebal (Generic Serial)
Step3: Set USB Support to CDC (Generic Serial supersededU(S)ART)
Step4: Set Upload method to HID Bootloader 2.2
Step5: Click Upload