r/Keychron • • Jan 09 '24

V1 + QMK cli flashing

I'm having trouble flashing new changes to the keyboard. Here's what happens:
If I make a change to keymap.c in keyboards/keychron/v1/ansi_encoder/keymaps/<USER>/
compile with qmk compile and then flash with qmk flash
(I've got environment set up)
It will flash with no errors but the change won't be made.
If I then flash the stock firmware from Keychron from the official site and THEN flash my custom firmware the changes are made. I don't understand what is going on. It would be nice not having to flash two files in order to make changes. I understand I can do all this with VIA but I would like to understand qmk cli.
Any ideas?
Thanks for any help

1 Upvotes

9 comments sorted by

View all comments

Show parent comment

2

u/m147 Jan 11 '24

Hey, thanks for the detailed reply. It's quite informative.

I was able to solve my issue with the help of the guys on QMK discord.

It was as you mentioned VIA overriding setting from the EEPROM.

I was able to get around this by adding BOOTMAGIC_ENABLE = yes to rules.mk

This allows me to use the ESC button to get into DFU mode, much better than having to pry up the space bar every time.

1

u/PeterMortensenBlog V Jan 12 '24 edited Feb 20 '24

Thanks for the update.

Re "adding BOOTMAGIC_ENABLE = yes to rules.mk": That explains why the Esc key method works by default for, for example, with the V5. It is probably the case for all V series and V Pro series keyboards.

But I can't explain it for the K10 Pro. Note: It is in Keychron's fork (not QMK proper), and in that fork, in Git branch "bluetooth_playground".

It seems to be enabled by default for the V1 (in all six variations of the V1). Why did you have to change it?

2

u/m147 Jan 14 '24

Actually, I didn't realise that until you pointed it out. I added it to the rules.mk file in the keymap sub directory, as is keyboards/keychron/v1/ansi_encoder/keymaps/[USER]/rules.mk. I suppose it's not needed, but I hadn't tested the ESC key method before that so not sure if it works out of the box. I'll test it later.