Skip to content

Compile keyboard bootloader and firmware

GNU edited this page Nov 8, 2022 · 2 revisions

Build bin

git clone https://github.com/rogerclarkmelbourne/STM32duino-bootloader

cd STM32duino-bootloader

make generic-pc13

this will produce bootloader_only_binaries/generic_boot20_pc13.bin

Convert bootloader to hex format

using srec_cat to convert
windows: http://srecord.sourceforge.net/
linux: sudo apt install srecord

srec_cat bootloader_only_binaries/generic_boot20_pc13.bin -Binary -offset 0x08000000 -output bootloader_only_binaries/generic_boot20_pc13.hex -Intel

Next is to use stm32Cube to flash the bootloader

  • Download the stm32cube programmer
    stm32cube programmer

  • Put 1 ON in the back of keyboard

  • Connect keyboard with a usb-serial convert by fpc, in order of IO MAP

  • Click connect on STM32cube programmer

  • flash it

2022-09-26_13-04 2022-09-26_13-04_1 2022-09-26_13-09

Flash Arudino

Arduino IDE

image

  • verbose all outputs:
    image

  • Select upload method ,board type is **Generic STM32F103R series **
    image

  • Set cpu mhz to 48Mhz
    image

  • Put 1 OFF in the back of keyboard

  • User arduino IDE to open devterm_keyboard.ino

  • flash it image

CN version

https://shimo.im/docs/Tc8RVQWdjvXtwhYv/ 《GD32f103rgt6/CKSF103R* 与stm32duino bootloader》

custom keyboard:

https://forum.clockworkpi.com/t/keyboard-stuck-in-bootloader-mode/8830/11