mirror of
https://github.com/clockworkpi/uConsole.git
synced 2025-12-12 18:18:50 +01:00
Arduino 1.8.13
http://dan.drown.org/stm32duino/package_STM32duino_index.json
STM32F1xx/GD32F1xx boards by stm32duino version 2021.2.22
GENERIC STM32F103R series
gd32f1_generic_boot20_pc13.bin generic_boot20_pc13.bin
How to Compile Keyboard Firmware
Disclaimer: The instruction below was not prepared by ClockworkPi. Follow it at your own risk and make sure you know what you are doing.
You can easily modify, compile, and upload the keyboard firmware using the Arduino IDE.
- Download and install the Arduino IDE: https://www.arduino.cc/en/software/
- Run the Arduino IDE, go to
Menu > File > Preferences. At the bottom of the first tab, there is an "invisible" input field called Additional Boards Manager URLs. - Enter the following into this field:
http://dan.drown.org/stm32duino/package_STM32duino_index.json, then save. - Go to
Menu > Tools > Board > Boards Manager(or press<ctrl> + <shift> + b) - Search for the newly added board
STM32F1xx/GD32F1xxand install it. - Clone the repository
https://github.com/clockworkpi/uConsole.gitsomewhere (or otherwise download the keyboard firmware source code). - In the Arduino IDE, open the file
/uConsole/Code/uconsole_keyboard/uconsole_keyboard.ino. It will open many tabs in a new window. - Select the board:
Menu > Tools > Board > STM32F1xx/GD32F1xx boards > GENERIC STM32F103R series - Compile the firmware using
Menu > Sketch > Verify/Compile(<ctrl> + r) - If it didn’t fail — you are almost there.
- Now export the compiled binary using
Menu > Sketch > Export Compiled Binary(<alt> + <shift> + s) - The binary file will appear near your source code. Check the directory
/uConsole/Code/uconsole_keyboard/build/stm32duino.STM32F1.genericSTM32F103R/ - You should find the file
uconsole_keyboard.ino.bin - Great! Now you can upload the compiled firmware to the keyboard. Follow the official instructions: https://github.com/clockworkpi/uConsole/tree/master?tab=readme-ov-file#uconsole-keyboard-firmware
- Download the “uConsole Keyboard Firmware Flash Program” to the uConsole, unpack it, and replace the official firmware file with your own.
Hint: It is highly recommended to configure SSH access to your uConsole. In case something goes wrong, you will be able to recover the firmware without needing to connect a USB keyboard to the uConsole.