Closed xkonni closed 4 years ago
You may be using the wrong bootloader. The pok3r_rgb firmware is for the old POK3R RGB, which had two separate PCBs, sandwiched together. The pok3r_rgb2 firmware is for the new POK3R RGB, which has only one PCB.
wow.
thanks for your quick and helpful response!
flashed the rgb2 bootloader with openocd
> flash write_image ../disassemble/pok3r_rgb2/bootloader/rgb2_bootloader.bin 0
then v105 with pok3rtool
$ pok3rtool --ok -t pok3r-rgb2 flash V105 disassemble/pok3r_rgb2/v105/rgb2_v105.bin
And now it seems like everything is up and running!
Awesome! ;D
let's close this, but would you be interested in a little documentation? i can submit PRs next week.
Absolutely, that would be great. Sometimes it's honestly hard to write documentation for your own work, because you know it too well...
Alright, trying to summarize things. There are still a few open questions though. e.g.
If I flash a slightly modified version of qmk_pok3r for pok3r_rgb:
qmk_pok3r/vortex $ diff pok3r_rgb/config.h pok3r_rgb2/config.h
23c23
< #define PRODUCT_ID 0x0167
---
> #define PRODUCT_ID 0x0207
26,27c26,27
< #define PRODUCT Vortex POK3R RGB
< #define DESCRIPTION Vortex POK3R RGB with qmk_pok3r
---
> #define PRODUCT Vortex POK3R RGB2
> #define DESCRIPTION Vortex POK3R RGB2 with qmk_pok3r
qmk_pok3r/vortex $ diff pok3r_rgb/pok3r_rgb.c pok3r_rgb2/pok3r_rgb2.c
[empty]
qmk_pok3r/vortex $ diff pok3r_rgb/rules.mk pok3r_rgb2/rules.mk
[empty]
with
qmk_pok3r $ make vortex/pok3r_rgb2:default
qmk_pok3r $ pok3rtool --ok -t pok3r-rgb2 flash "QMK_POK3R" ./vortex_pok3r_rgb2_default.bin
there is limited functionality.
I can rebind keys, with e.g. pok3rtool --ok -t pok3r-rgb2 keymap set 1 1 2 KC_UP
and they show up pok3rtool --ok -t pok3r-rgb2 keymap dump
. Some keys, like KC_{LEFT,DOWN,UP,RIGHT}, work fine and some, like MEDIA_PLAY_PAUSE do not emit any signals, backlight does not work. It also seems like the keyboard is crashing constantly, at least watch pok3rtool list
is sometimes empty.
So I'm not sure if this is due to my rgb2, unimplemented functionality or due to some other mistake. Do you have any further information? Feel free to message via twitter/irc/xmpp/matrix.
Wait, really? I'm honestly amazed that with those changes it works at all. qmk_pok3r is only stable on the HT32F1655 (the MCU on the pok3r). I have had lots of problems with the same firmware on the HT32F1654 (pok3r_rgb, pok3r_rgb2, vortex_core, etc). I'm surprised it doesn't HardFault instantly on boot. I may have to look into this some more...
As far as the keys, I believe the matrix for the RGB2 is wired slightly differently than the RGB. I would have to look at my schematics. And I never implemented backlight support. It wasn't as simple as driving an LED matrix, it used LED driver ICs.
hello!
I had some troubles understanding the whole process at first, so guess I did something wrong.
Things I did
mass erase and flash
flash patched firmware
Details
Conclusion
Hope there's some way to fix this and I didn't actually break the keyboard.
Questions
Thank you very much!