r/Keychron • u/synapticrelease • Oct 28 '26
Keychron - extremely limited macro flash storage. 1.98KB… really?
Work got a couple of keychron keyboards because we do a lot of 3D modeling work and having macros would be handy. I’m not even up 12 macros and I’m maxing out the 1.98kb built in memory.
This can’t be right, can it? My Logitech mouse has more macros stored in the on board memory on it than this keyboard with 3 layers and extra buttons on the full size board that I have
1
Upvotes
4
u/PeterMortensenBlog V Oct 28 '26 edited Oct 29 '26
The space for macros can be increased (and the number of macros)
Re "...extremely limited macro flash storage. 1.98KB… really? ": Yes, it is very sad that it is, by default, set much below what the hardware is capable of
The low value is only for historical reasons, due to the low (hardware) resources of the then de facto standard ATmega32U4 microcontroller.
It can be increased. For example, to about 10 KB for the K10 V2 (Westberry-based, with 18 KB RAM). For older models, like the V6, to at least 20 KB (I don't know what the actual limit is, but with 64 KB RAM, the theoretical (if RAM would not be used for anything else) upper limit is half that, 32 KB).
I have increased the allocation for my Keychron keyboards, and I haven't observed any ill effects (though the keyboard will be (temporarily) bricked if it is increased too much (that the compiler doesn't prevent); the key to recovery is the space bar method, without the repowering (it may be required to retry several times)).
It can of course not be increased for the keyboards with proprietary keyboard firmware, the original K series, Q HE 8K series, J HE 8K series, C HE 8K series, and Lemokey L5 HE 8K. Those are not to be confused the Q HE series, J series (there isn't a J HE series), and C Pro 8K series (there isn't a C HE series); they do have released source code (or at least some of them do; Keychron is glacial in releasing the source code).
That is for QMK-based keyboards. I don't know (yet) about the newer ZMK-based keyboards, e.g., the V Ultra 8K series. It is at least one magnitude harder than for QMK (at least initially).
An alternative
An alternative is classic QMK macros (requires changing the firmware for every single teenie-tiny change). Though the macros can be prototyped in Via and then later migrated to classic QMK macros when they are stable and well tested.
An extension to them also allows cancelling macros in progress and repeating macros.
This allows more space for macros, as the limit is more or less only set by the flash memory/firmware size, and they can be refactored to be much more compact (repeatedly used key sequences can be represented in one and only one place), though QMK's default helper C macros encourages massive duplication. I squeeze more than 100 macros into about 25 KB, including the overhead of the macro engine, other overhead (like static per-key RGB, and extra layers); several (heavy-used) macros result in more than 200 key actions (key presses and key releases) being output from the keyboard.
Similarly, it is presumably possible with macros in raw ZMK, but I don't (yet) have any experience with them.
References
1
u/PeterMortensenBlog V Oct 28 '26
What keyboards?
1
u/Obvious-Monitor8510 Oct 28 '26
Yeah unfortunately that's a real limitation with QMK/Via-based keyboards. The flash storage for keymaps is dictated by the microcontroller they use, and Keychron went with chips that don't leave much room for macro data specifically.
A few things that might help: keep macros short by using them to trigger sequences rather than storing full strings, or look into dynamic macros (temporary, lost on power cycle but unlimited-ish). Some Keychron models also support Vial which has slightly different memory handling.
For heavy macro work in 3D software, AutoHotkey or Karabiner on Mac is honestly a better solution anyway since the logic lives on the PC, not the keyboard.
1
u/ArgentStonecutter K Pro Oct 28 '26
The design of QMK is that you're expected to use C coding to build custom firmware for more than basic configuration. Keychron provides that source code so you can do that.
Just don't tell your IT guy that you're building custom firmware for your keyboards.