{"id":30898947,"url":"https://github.com/pegvin/ch32v003","last_synced_at":"2025-09-09T02:06:29.476Z","repository":{"id":309597240,"uuid":"1035104167","full_name":"pegvin/CH32V003","owner":"pegvin","description":"Minimal CLI Oriented CH32V003 Build Environment (No CH32Fun)","archived":false,"fork":false,"pushed_at":"2025-08-12T18:12:25.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-12T20:20:03.770Z","etag":null,"topics":["build-environment","ch32v003"],"latest_commit_sha":null,"homepage":"","language":"C","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/pegvin.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,"zenodo":null}},"created_at":"2025-08-09T17:02:00.000Z","updated_at":"2025-08-12T18:12:29.000Z","dependencies_parsed_at":"2025-08-12T20:21:13.459Z","dependency_job_id":"2b559fb9-ebd5-4786-beb8-07000da6c942","html_url":"https://github.com/pegvin/CH32V003","commit_stats":null,"previous_names":["pegvin/ch32v003"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pegvin/CH32V003","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegvin%2FCH32V003","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegvin%2FCH32V003/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegvin%2FCH32V003/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegvin%2FCH32V003/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pegvin","download_url":"https://codeload.github.com/pegvin/CH32V003/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegvin%2FCH32V003/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231896,"owners_count":25245858,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["build-environment","ch32v003"],"created_at":"2025-09-09T02:06:28.647Z","updated_at":"2025-09-09T02:06:29.468Z","avatar_url":"https://github.com/pegvin.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CH32V003\nMinimal CLI Oriented CH32V003 Build Environment (No CH32Fun)\n\n---\n\n## About\n\nThis repository provides a minimal cli-oriented build environment\nfor CH32V003 applications. This environment uses the [HAL provided\nby WCH](https://www.wch.cn/downloads/CH32V003EVT_ZIP.html).\n\nThe `build.sh` script is responsible for building your code. By default\n`build.sh` is configured to use [riscv-none-elf-gcc-xpack](\u003chttps://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack\u003e)\ntoolchain (Assumed to be installed in `./toolchain`). You can run the\n`./setup_toolchain.sh` script to install this toolchain in the appropriate\nlocation or you can override the `TC` environment variable to point\nto the `bin/` directory of your toolchain.\n\nUsing toolchains like `riscv-none-elf-gcc-xpack` means you cannot use\nfeatures like `WCH-Interrupt-fast` that are found in the proprietary\ntoolchain by WCH. If you wish to use the proprietary toolchain, You\ncan run `build-wch.sh` script instead. But before doing that you must\ndownload the proprietary toolchain from \u003chttps://www.mounriver.com/download\u003e\n\u0026 Extract it to a location. You can then either update the `TC` variable\ninside `build-wch.sh` or `TC` environment variable to point to your\ntoolchain's `bin/` directory.\n\nUsage \u0026 Notes about `build.sh` (Applies to `build-wch.sh` as well):\n1. If available, `ccache` is used to do incremental builds.\n2. `./build.sh bear` can be run atleast once to generate a\n   `build/compile_commands.json` for clangd LSP.\n3. `./build.sh flash` can be used to flash the code to your\n   MCU using the `wlink` tool.\n4. `./build.sh serial` prints any data from `/dev/ttyACM0`.\n   - http://kofa.mmto.arizona.edu/usb/learn/acm.html\n   - https://rfc1149.net/blog/2013/03/05/what-is-the-difference-between-devttyusbx-and-devttyacmx/\n\nYou can also look into `.github/workflows/build.yml` to modify \u0026 use\nGitHub Actions workflow for your own use. The default behavior sets up\nthe toolchain (caches it to speedup future builds), builds \u0026 uploads\nthe binaries as artifacts.\n\nOther stuff that might be worth looking into:\n- \u003chttps://github.com/basilhussain/ch32v003-startup\u003e\n- \u003chttps://github.com/cjacker/opensource-toolchain-ch32v#debugging\u003e\n\n## License\nAll the non-WCH code in this repository is under public domain license.\n\n---\n\n# Thanks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpegvin%2Fch32v003","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpegvin%2Fch32v003","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpegvin%2Fch32v003/lists"}