WeAct HID bootloader on Black Pill

How to upload the WeAct HID bootloader on Black Pill

Uploading sketches from Arduino IDE using DFU, Serial , ST-link methods, the WeAct HID Bootloader will be deleted It's possible to upload it again

Download the the HID bootloader WeAct_HID_Bootloader_F4x1.hex

The HID bootloader file must be converted from hex format to bin:

objcopy -Iihex -j .sec1 -Obinary WeAct_HID_Bootloader_F4x1.hex WeAct_HID_Bootloader_F4x1.bin

dfu-suffix -a WeAct_HID_Bootloader_F4x1.bin

Upload WeAct_HID_Bootloader_F4x1.bin on the Black Pill using dfu-util:

dfu-util -a 0 -s 0x08000000 -D WeAct_HID_Bootloader_F4x1.bin

To use the Black Pill under linux, it is required to install the STM32 HID rules 96-stm32f4_hid.rules

Upload Arduino Sketch on the Black Pill

To upload the Sketch file bin, generated from Arduino IDE, to the Black Pill is required the WeAct uploader sofware called WeAct_HID_Flash-CLI

./WeAct_HID_Flash-CLI Blink.bin

Please note that to enter in the HID Bootloader mode is required to push the stand-alone button near the 4 pins for ST-Link