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 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.