{"id":21744568,"url":"https://github.com/github0null/w801_cmake_template","last_synced_at":"2026-01-03T18:43:59.912Z","repository":{"id":100179948,"uuid":"444345833","full_name":"github0null/w801_cmake_template","owner":"github0null","description":"HLK-W801 cmake project template","archived":false,"fork":false,"pushed_at":"2023-12-21T10:38:27.000Z","size":42932,"stargazers_count":26,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-25T22:22:43.054Z","etag":null,"topics":["ble","c-sky","cmake","hlk-w80x","make","ninja","riscv","vscode","w800","w801","wifi"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github0null.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-04T08:43:23.000Z","updated_at":"2024-10-13T10:11:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"f991fcc1-0088-40b8-a68b-aaf4266d7588","html_url":"https://github.com/github0null/w801_cmake_template","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0null%2Fw801_cmake_template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0null%2Fw801_cmake_template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0null%2Fw801_cmake_template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0null%2Fw801_cmake_template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github0null","download_url":"https://codeload.github.com/github0null/w801_cmake_template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244722655,"owners_count":20499153,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ble","c-sky","cmake","hlk-w80x","make","ninja","riscv","vscode","w800","w801","wifi"],"created_at":"2024-11-26T07:11:57.190Z","updated_at":"2026-01-03T18:43:59.886Z","avatar_url":"https://github.com/github0null.png","language":"CMake","readme":"# W801 VSCode CMake template\n\nHLK-W801 Vscode 项目模板，使用 `VSCode + CMake + Ninja` 构建\n\n本处使用的开发板为 `HLK-W801-KIT-V1.1`\n\n\u003e 注意：该仓库内的 SDK 有一定的改动，可能与官方的有出入\n\n## 安装\n\n- 安装 CMake v3.20+ 以及 Ninja\n\n  - 打开系统的 cmd，执行 `cmake --help` 和 `ninja --help` 检查是否已安装完成\n\n- 克隆源码，在 VSCode 中打开工程文件夹：\n\n  - 在当前工作区打开终端，执行 `git submodule init` 和 `git submodule update`，拉取子模块（**此步骤要从 github 克隆仓库，请确保网络通畅**）\n\n- 安装 csky 编译器（系统中已安装则可忽略该步骤）：\n\n  - 打开工程的目录：`sdk/tools/w800/toolchain/`\n\n  - 将 `csky-elfabiv2-tools-mingw-minilibc-20210423.7z` 编译器解压，将解压后的目录移动到你的磁盘其他位置上\n\n  - 打开系统属性-\u003e高级-\u003e环境变量设置，将解压后编译器的路径 `xxx\\xx\\csky-elfabiv2-tools-mingw-minilibc-20210423\\bin` 设置到环境变量 `Path` 中\n\n  - 保存设置，之后关闭所有 VSCode 实例\n\n- 再次打开 VSCode，打开工程的目录，在终端中执行 `csky-elfabiv2-gcc -v` 检查编译器是否已安装\n\n- 安装 VSCode 插件：`CMake Tools`\n\n***\n\n## 编译\n\n- 打开 CMake Tools 的工具栏\n\n- 选择 `Configure All Projects` 生成配置\n\n- 选择 `w801.fls` 为构建目标\n\n  ![](./doc/setup_cmake_target.png)\n\n- 之后，点击旁边的 `build` 图标启动构建\n\n- 编译完成后，工程根目录下会生成一个 `bin` 文件夹，固件将存放在其中\n\n  ![](./doc/build_done.png)\n\n***\n\n## 烧录\n\n- 按下 `ctrl+shift+B` 打开可用任务，选择 `flash (select serialport)` 回车，之后输入串口名称，回车启动烧录\n\n  ![](./doc/flash.png)\n\n- 烧录结束后，将打印如下 log：\n\n  ![](./doc/run.png)\n\n- 由于程序烧录完后立即开始运行，而烧录器串口打开较慢，因此 log 有些缺失，按下复位键重启程序即可看到完整 log：\n\n  ![](./doc/run2.png)\n\n\n本例程中，默认开启固件加密以及数字签名，上电后将校验固件签名\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub0null%2Fw801_cmake_template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub0null%2Fw801_cmake_template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub0null%2Fw801_cmake_template/lists"}