Question: how to flash qmk firmware?
Answer: Press the RESET keycode, or tap the RESET button (or short RST to GND).
Wait for the OS to detect the device.
Erase the memory (may be done automatically)
Flash a . hex file.
Reset the device into application mode (may be done automatically)