Skip to content

Commit

Permalink
Swap G431 to transient EEPROM. Add G431 and G474 onekeys. (qmk#21282)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc authored and autoferrit committed Dec 6, 2023
1 parent db949ef commit e7f2ab2
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 0 deletions.
19 changes: 19 additions & 0 deletions keyboards/handwired/onekey/nucleo_g431rb/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"keyboard_name": "Onekey Nucleo G431RB",
"processor": "STM32G431",
"bootloader": "stm32-dfu",
"matrix_pins": {
"cols": ["A9"],
"rows": ["A10"]
},
"backlight": {
"pin": "B8"
},
"ws2812": {
"pin": "A0"
},
"apa102": {
"data_pin": "A0",
"clock_pin": "B13"
}
}
7 changes: 7 additions & 0 deletions keyboards/handwired/onekey/nucleo_g431rb/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ST Microelectronics Nucleo64-G431RB onekey

Supported Hardware: <https://www.st.com/en/evaluation-tools/nucleo-g431rb.html>

To trigger keypress, short together pins *A9* and *A10*.

The usual USB connection to ST-Link will not work for QMK -- pins *A11* and *A12* need to be connected to *D-* and *D+* respectively.
Empty file.
19 changes: 19 additions & 0 deletions keyboards/handwired/onekey/nucleo_g474re/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"keyboard_name": "Onekey Nucleo G474RE",
"processor": "STM32G474",
"bootloader": "stm32-dfu",
"matrix_pins": {
"cols": ["A9"],
"rows": ["A10"]
},
"backlight": {
"pin": "B8"
},
"ws2812": {
"pin": "A0"
},
"apa102": {
"data_pin": "A0",
"clock_pin": "B13"
}
}
7 changes: 7 additions & 0 deletions keyboards/handwired/onekey/nucleo_g474re/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ST Microelectronics Nucleo64-G474RE onekey

Supported Hardware: <https://www.st.com/en/evaluation-tools/nucleo-g474re.html>

To trigger keypress, short together pins *A9* and *A10*.

The usual USB connection to ST-Link will not work for QMK -- pins *A11* and *A12* need to be connected to *D-* and *D+* respectively.
Empty file.
3 changes: 3 additions & 0 deletions platforms/chibios/mcu_selection.mk
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,9 @@ ifneq ($(findstring STM32G431, $(MCU)),)

# Bootloader address for STM32 DFU
STM32_BOOTLOADER_ADDRESS ?= 0x1FFF0000

# Default to transient driver as ChibiOS EFL is currently broken for single-bank G4xx devices
EEPROM_DRIVER ?= transient
endif

ifneq ($(findstring STM32G474, $(MCU)),)
Expand Down

0 comments on commit e7f2ab2

Please sign in to comment.