|
| 1 | +# Build bin |
| 2 | + |
| 3 | +``` |
| 4 | +git clone https://github.com/rogerclarkmelbourne/STM32duino-bootloader |
| 5 | +
|
| 6 | +cd STM32duino-bootloader |
| 7 | +
|
| 8 | +make generic-pc13 |
| 9 | +
|
| 10 | +``` |
| 11 | +this will produce `bootloader_only_binaries/generic_boot20_pc13.bin` |
| 12 | +## Convert bootloader to hex format |
| 13 | +using `srec_cat` to convert |
| 14 | +windows: http://srecord.sourceforge.net/ |
| 15 | +linux: sudo apt install srecord |
| 16 | + |
| 17 | +``` |
| 18 | +srec_cat bootloader_only_binaries/generic_boot20_pc13.bin -Binary -offset 0x08000000 -output bootloader_only_binaries/generic_boot20_pc13.hex -Intel |
| 19 | +``` |
| 20 | + |
| 21 | +## Next is to use stm32Cube to flash the bootloader |
| 22 | +* Download the stm32cube programmer |
| 23 | + [stm32cube programmer](https://www.st.com/en/development-tools/stm32cubeprog.html) |
| 24 | + |
| 25 | +* Put 1 ON in the back of keyboard |
| 26 | +* Connect keyboard with a usb-serial convert by fpc, in order of [IO MAP](https://github.com/clockworkpi/DevTerm/wiki/Keyboard-with-FPC-60pin-0.5mm) |
| 27 | +* Click connect on STM32cube programmer |
| 28 | +* flash it |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +# Flash Arudino |
| 37 | +## Arduino IDE |
| 38 | +* add stm32duino pacakage index in **Preference panel** : http://dan.drown.org/stm32duino/package_STM32duino_index.json as **Additional Boards Manager URLs:** and install STM32F1xx/GD32F1xx boards |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | +* verbose all outputs: |
| 43 | + |
| 44 | + |
| 45 | +* Select upload method ,board type is **Generic STM32F103R series ** |
| 46 | + |
| 47 | + |
| 48 | +* Set cpu mhz to 48Mhz |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +* Put 1 OFF in the back of keyboard |
| 53 | +* User arduino IDE to open [devterm_keyboard.ino](https://github.com/clockworkpi/DevTerm/blob/main/Code/devterm_keyboard/devterm_keyboard.ino) |
| 54 | +* flash it |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | +# CN version |
| 59 | +https://shimo.im/docs/Tc8RVQWdjvXtwhYv/ 《GD32f103rgt6/CKSF103R* 与stm32duino bootloader》 |
| 60 | + |
| 61 | +custom keyboard: |
| 62 | + |
| 63 | +https://forum.clockworkpi.com/t/keyboard-stuck-in-bootloader-mode/8830/11 |
| 64 | + |
0 commit comments