r/Keychron • u/tkrentl21 • May 21 '26
[QMK] Has anyone successfully flashed custom C-code firmware to a Keychron K10 Pro SE2 QMK Toolbox?
I’m trying to figure out whether my keyboard actually supports full QMK custom firmware flashing (C code modifications + QMK Toolbox), or if it’s limited to VIA/ZMK-style configuration only.
My keyboard:
- Keychron K10 Pro SE2
- VID: 3434
- PID: 0AAB
- Wireless model
What I successfully did so far:
- Installed QMK MSYS
- Cloned Keychron’s qmk_firmware fork
- Found the keyboard path:
keychron/k10_pro_se2/ansi_lightless - Edited
keymap.c - Added custom C code (
process_record_user, random delay macro, etc.) - Successfully compiled firmware and generated
.bin
But flashing is where things get weird.
qmk flash always hangs on:
“Flashing for bootloader: stm32-dfu”
and dfu-util -l only detects my camera DFU device, not the keyboard.
However:
- Windows detects the keyboard as HID
- VID/PID 3434:0AAB appears
- Zadig shows “usb DFU (Interface 0/1)”
- Official firmware reflashing works
- QMK compile works
- But QMK Toolbox / dfu-util flashing does NOT
So my questions are:
- Has ANYONE successfully flashed custom QMK firmware with modified C code onto this exact keyboard or a similar K10 Pro SE2 / ZMK variant?
- Does this keyboard actually support full QMK firmware flashing, or only VIA-style remapping?
- Is there a special HID/vendor bootloader flashing method for these newer Keychron wireless/ZMK boards?
- If this model is effectively limited, which Keychron/non-Keychron wireless keyboards are confirmed to support:
- QMK Toolbox
- custom
process_record_user - custom C code
- successful
qmk flash
Any success stories, GitHub repos, or exact working models would really help.
4
Upvotes
1
u/PeterMortensenBlog V May 21 '26 edited May 21 '26
Unreliable: Putting the keyboard into flash mode (incl. the space bar method)
If the Esc key method (without the repowering) for putting the keyboard into flash mode (AKA firmware update mode AKA bootloader mode AKA DFU mode) does not work for some reason (after several retries), the backup method, that should always work, including for a bricked keyboard, is the (cumbersome) space bar method (without the repowering).
As with the Esc key method, the space bar method is not very reliable either, and it may require several retries.
1
u/PeterMortensenBlog V May 21 '26 edited May 27 '26
Re "keychron/k10_pro_se2/ansi_lightless": That is in branch "wireless_playground"
According to the source code, it uses an STM32 microcontroller (allegedly, the same as in some variants of the Black Pill (at least according to stm32world.com), though possibly a different variant):
The original K10 Pro uses a different STM32 microcontroller:
USB product IDs (PIDs):
But it shouldn't make any difference for this (unlike, for example, the original V6 vs. V6 V2).
1
u/PeterMortensenBlog V May 21 '26 edited May 21 '26
Re "which Keychron/non-Keychron wireless keyboards are confirmed to support QMK Toolbox, custom process_record_user, custom C code, successful qmk flash": I haven't used this exact combination, but it is expected to work
There was a fix on 2024-12-16 for the K10 Pro SE2, so presumably they have tested it, including with using the indicated microcontroller.
For example, it works fine for a K10 Pro 'ISO' (the original) in branch "wireless_playground" rolled back to 2025-03-25, using process_record_user() for classic QMK macros, custom C code (custom macro execution engine, etc.), and flashing from the command line:
QMK Toolbox uses dfu-util under the hood, so it shouldn't make any difference.
And also more custom changes: static per-key RGB, more layers than the default four, combo keys, layer-dependent colour (but overlayed by the static per-key RGB on most layers), and static key maps different from the default (for example, swapped 'Fn' key and right Windows key).
I last updated the K10 Pro on 2025-11-01 (still using 2025-03-25 as the base version).
References
1
u/PeterMortensenBlog V May 21 '26
Didn't you get the compile error?
1
u/PeterMortensenBlog V May 21 '26 edited Jul 05 '26
Establish a stable base
To get a stable base from which to find out exactly what causes the problem, I suggest:
Do a fresh setup, in a different folder:
The folder name, e.g., "
Keychron_fork_wireless_playground", is arbitrary and can chosen to be whatever makes sense (as long as it isn't the original, probably "qmk_firmware", and isn't some other existing folder).Roll back to the 2025-03-25 version (before the partial source code release, that also broke compilation, at least for some K Pro series keyboards):
Compile
Result:
Flash
This presumes executable 'dfu-util' is in the PATH. If it isn't, an absolute file path to it could be used instead ('dfu-util' is somewhere, in this case as 'dfu-util.exe', installed by QMK Toolbox)
That is to exclude (or not) your changes and the partial source release for the 2025 Keychron keyboard main firmware updates (was never proven, for example, for the K Pro series) to influence the result.
(In "wireless_playground", the source code for the 2025 updates was only ever released fully for a single keyboard, the V1 Max.)
If that doesn't work, try to roll back to the initial source code release for the K10 Pro SE (870DA5, 2024-11-18):
Conclusion
The 2025-05-30 commit could be the culprit.
But first rule out intermittent flash failures.
1
u/PeterMortensenBlog V May 21 '26 edited May 21 '26
Normally, for the K Pro series, it is simpler to use "wls_2025q1" instead of "wireless_playground" (and is also a newer (effective) QMK version (November 2023 (version 0.23) vs. February 2025 (version 0.28))), but the K10 Pro SE isn't present there, only the original K10 Pro.
1
u/PeterMortensenBlog V May 21 '26 edited May 21 '26
It could be due to intermittent failure of the flash process
How could you reflash the official firmware if it hanged?
All flash methods (for this keyboard) end up invoking 'dfu-util'.
A possible exception is if using the (unoccupied) four-pin programming header on the PCB (near the microcontroller); here is a (high-resolution, properly focused) picture (for a K3 Pro; it is near "U6" in the lower right, with labels "SWDIO", "SWCLK", "V3.3", and "GND"). Presumably, it would be relatively easy to flash using, for example, ST-LINK. A cheap way is to break off the integrated ST-LINK module on a Nucleo board (a picture):
Note that putting the keyboard into flash mode is not very reliable and may require several retries.
1
u/PeterMortensenBlog V May 30 '26
Did it work by reverting the source code version to 2025-03-25?
1
u/PeterMortensenBlog V Oct 12 '26 edited Oct 12 '26
Is it a white LED variant?
The released source code (2024) is for a different USB product ID (0x0AAA, not 0x0AAB). Part of the folder name is "ansi_lightless".
1
u/PeterMortensenBlog V Oct 12 '26
To reduce the confusion, for keyboard identification, what is the serial number of your K10 Pro SE2 (also includes the manufacturing date)?
The manufacturing date removes some of the (possible) ambiguity. My initial guess is some time in 2024, but maybe it is 2026.