Due to hardware changes, this Git branch only supports GG75 keyboards
with support in a single chip.
This is a porting of QMK keyboard firmware (VIAL) for CH58x series, currently support CH582.
-
CherryUSB, qmk_firmware: Components introduced as submodules, NO any file is modified.
The qmk_firmware submodule should be able to keep up with upstream.
-
CherryUSB porting: Files used to add CherryUSB submodule into the building system.
-
qmk_porting: The adapter layer for QMK to running on the CH58x chip.
-
SDK: Directory for placing WCH SDK, so no IDE is needed.
-
template: TODO
- Master: Support for USB and ws2812 is done, still in development.
- debug: Used for presenting specific issues, ignore if use of QMK is all you want.
- USB mode
- Capability to update along with the QMK repo
Currently only CH582M is tested.
First of all, clone this repo recursively using git clone --recursive https://github.com/OctopusZ/qmk_port_ch582_4GG75.git
- A WCH-specified toolchain is provided in this repo, if you want to use the public version, you may find it here. Note that you need to add it to your
PATH
environment variable manually. - A global defination
INT_SOFT
is needed or the ISR handlers might not working properly.
- Install
Homebrew
if you haven't. - Open your terminal and run
brew install cmake ninja
- Install VS Code
TODO
If you are familiar enough with the MSYS2
subsystem (or Cygwin
, but NO WSL2), you should be able to figure it out without many efforts. I'm only leaving a simple tutorial here.
- Open this repository with VS Code.
- Install extension
CMake
andCmake Tools
. - Check CMake configurations on status bar which you can find at the bottom of you GUI:
- Check
build type
toRelease
- Check
active kit
toNo active kit
if you are using the WCH toolchain, or to the corresponding toolchain you have downloaded.
- Click the
Build
button. - Firmwares will be generated to the root directory in the name of your keyboard. Choose
xxx_upgrade.uf2
if you are the end user,xxx_factory.hex
is for developers only.
Developers:You may use the flashing utility.
End users:Use Bootmagic Lite with .uf2
only, or take your own risk of bricking your keyboard.
这是QMK固件向CH58x平台的移植,主要工作集中在应用层(QMK)和底层硬件之间的接合。
-
CherryUSB, qmk_firmware: 子仓库,没有修改任何代码。
其中,QMK固件应当能够随上游仓库随时更新。
-
CherryUSB porting: CherryUSB的配置文件。
-
qmk_porting: QMK和硬件之间的接合层
-
SDK: WCH的SDK, 目前版本V1.5。
-
template: 新键盘的模板,待做。
- Master: 完成了有线键盘所需的基本移植,包括VIA支持。灯目前只支持ws2812.
- debug: 如果你只是来看QMK的,当它是空气即可。
- 可随QMK上游仓库随时更新,支持QMK的绝大多数功能
- 无线低功耗
目前只测试了CH582M,CH582F应当能够正常工作。
克隆我的仓库,使用git clone --recursive https://github.com/OctopusZ/qmk_port_ch582_4GG75.git
- WCH的工具链已经随附,当然你也可以选择使用公版编译器. 但需要你自行加进环境变量。
- 如果你确定要头铁,加一个全局宏定义
INT_SOFT
,否则中断很有可能不会正常工作
- 安装
Homebrew
- 打开终端,运行
brew install cmake ninja
- 安装VS Code
TODO
如果你很熟悉MSYS2
(或者Cygwin
, WSL2除外),你应该可以轻易配好环境,需要安装的东西包括ninja
,cmake
和python
,注意msys2里的cmake版本很老,请百度解决方法。
新手上路:
- 在VS Code里打开本仓库的文件夹
- 安装插件
CMake
和Cmake Tools
- 在底部状态栏上寻找
build type
并将其设置为Release
active kit
并将其设置为No active kit
- 如果你选择了公版编译器,需要找到对应的名字并选择
- 点击
Build
. - 固件会以你键盘的名字命名并生成在本仓库的根目录下。 对于用户来说,强烈推荐使用xxx_upgrade.uf2,否则你很有可能把键盘刷成砖。
开发者:推荐使用WCH提供的工具。
最终用户:不要使用除Bootmagic Lite以外的方式。