From fc0b45de4ecdb0cc6f0322ff6bcc34dcbe855c27 Mon Sep 17 00:00:00 2001 From: GNU Date: Mon, 26 Sep 2022 13:00:55 +0800 Subject: [PATCH] Created Compile keyboard bootloader (markdown) --- Compile-keyboard-bootloader.md | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Compile-keyboard-bootloader.md diff --git a/Compile-keyboard-bootloader.md b/Compile-keyboard-bootloader.md new file mode 100644 index 0000000..ceeee0e --- /dev/null +++ b/Compile-keyboard-bootloader.md @@ -0,0 +1,45 @@ +# 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` + +## Next is to use stm32Cube to flash the bootloader +* Download the stm32cube programmer + [stm32cube programmer](https://www.st.com/en/development-tools/stm32cubeprog.html) + +* Put 1 ON in the back of keyboard +* Connect keyboard with a usb-serial convert, in order of [IO MAP](https://github.com/clockworkpi/DevTerm/wiki/Keyboard-with-FPC-60pin-0.5mm) +* Click connect on STM32cube programmer +* flash it + +# Flash Arudino +## Arduino IDE +* add stm32duino pacakage index: http://dan.drown.org/stm32duino/package_STM32duino_index.json +![image](https://user-images.githubusercontent.com/523580/192196432-7afdbda3-3de6-4ca1-bd18-dbcc6b38b295.png) + +* verbose all outputs: +![image](https://user-images.githubusercontent.com/523580/192197062-60f13b8f-e537-4086-ae52-eaf8878b26f4.png) + +* Select upload method +![image](https://user-images.githubusercontent.com/523580/192197084-db4b3178-ec18-40a1-8680-b0890e39e662.png) + +* Set cpu mhz to 48Mhz +![image](https://user-images.githubusercontent.com/523580/192197126-62f41bad-a9b2-42a7-9622-2e07c1a08d3b.png) + + +* Put 1 OFF in the back of keyboard +* User arduino IDE to open [devterm_keyboard.ino](https://github.com/clockworkpi/DevTerm/blob/main/Code/devterm_keyboard/devterm_keyboard.ino) +* flash it + +![image](https://user-images.githubusercontent.com/523580/192197177-e069fb08-6f40-40cc-9d9e-129bf0a546a6.png) + + + +