{"id":31057178,"url":"https://github.com/shishir-dey/ch32v103-template","last_synced_at":"2026-08-16T15:31:14.166Z","repository":{"id":312568188,"uuid":"1047913227","full_name":"shishir-dey/ch32v103-template","owner":"shishir-dey","description":"A template repository for bare-metal C projects on CH32 microcontrollers","archived":false,"fork":false,"pushed_at":"2026-01-01T16:28:32.000Z","size":230,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-06T21:58:19.544Z","etag":null,"topics":["ch32","ch32v","ch32v103"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shishir-dey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-31T14:13:17.000Z","updated_at":"2026-01-01T16:29:08.000Z","dependencies_parsed_at":"2025-08-31T16:23:19.597Z","dependency_job_id":"acf9685a-1560-4849-89b5-00b1f1eb0677","html_url":"https://github.com/shishir-dey/ch32v103-template","commit_stats":null,"previous_names":["shishir-dey/ch32v103-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/shishir-dey/ch32v103-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shishir-dey%2Fch32v103-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shishir-dey%2Fch32v103-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shishir-dey%2Fch32v103-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shishir-dey%2Fch32v103-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shishir-dey","download_url":"https://codeload.github.com/shishir-dey/ch32v103-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shishir-dey%2Fch32v103-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36718482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-06T04:43:03.162Z","status":"online","status_checked_at":"2026-08-16T02:00:06.462Z","response_time":62,"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":["ch32","ch32v","ch32v103"],"created_at":"2025-09-15T06:51:25.570Z","updated_at":"2026-08-16T15:31:14.145Z","avatar_url":"https://github.com/shishir-dey.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CH32V103 Template Project\n\nA complete template project for the CH32V103 RISC-V microcontroller with CMake build system and automated CI/CD.\n\n## Project Structure\n\n```\nch32v103-template/\n├── .gitignore\n├── CMakeLists.txt\n├── LICENSE\n├── README.md\n├── .github/\n├── apps/                 # Application examples\n│   └── framework/        # Application framework\n├── core/                 # Core system files\n├── cpu/                  # CPU-specific code\n├── driver/               # Hardware abstraction layer\n│   ├── inc/             # Driver header files\n│   └── src/             # Driver source files\n├── lib/                  # Libraries\n│   └── debug/           # Debug utilities\n└── system/               # System-level code\n```\n\n## Prerequisites\n\n### Local Development\n\n1. **RISC-V GCC Toolchain**: Install using xPack\n   ```bash\n   npm install -g xpm\n   xpm install @xpack-dev-tools/riscv-none-elf-gcc@14.2.0-3.1\n   ```\n\n2. **CMake**: Version 3.16 or higher\n   ```bash\n   # Ubuntu/Debian\n   sudo apt-get install cmake\n   \n   # macOS\n   brew install cmake\n   \n   # Windows\n   # Download from https://cmake.org/download/\n   ```\n\n3. **Make**: Build system\n   ```bash\n   # Ubuntu/Debian\n   sudo apt-get install build-essential\n   \n   # macOS (via Xcode Command Line Tools)\n   xcode-select --install\n   ```\n\n### Toolchain Setup\n\nThe toolchain will be installed in:\n- Linux/macOS: `~/.local/xPacks/@xpack-dev-tools/riscv-none-elf-gcc/14.2.0-3.1/.content/bin/`\n- Windows: `%APPDATA%\\xPacks\\@xpack-dev-tools\\riscv-none-elf-gcc\\14.2.0-3.1\\.content\\bin\\`\n\nAdd this directory to your PATH environment variable.\n\n## Building\n\n### Quick Start\n\n1. **Clone the repository**:\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd ch32v103-template\n   ```\n\n2. **Create build directory**:\n   ```bash\n   mkdir build\n   cd build\n   ```\n\n3. **Configure and build**:\n   ```bash\n   cmake ..\n   make -j$(nproc)\n   ```\n   \n## Flashing with WCH-Link\n\nTo flash the compiled firmware to the CH32V103 microcontroller, use the WCH-Link tool (wlink).\n\n### Installation\n\nInstall wlink using Cargo:\n\n```bash\ncargo install --git https://github.com/ch32-rs/wlink\n```\n\n### Usage\n\nWCH-Link is a flash tool for WCH's RISC-V MCUs (CH32V, CH56X, CH57X, CH58X, CH59X, CH32L103, CH32X035, CH641, CH643).\n\nExample: Flash the firmware binary to address 0x08000000:\n\n```bash\nwlink flash --address 0x08000000 ./firmware.bin\n```\n\n## License\n\nThis project template is provided as-is for educational and commercial use. Please check individual component licenses for specific terms.\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Test with the CI/CD pipeline\n5. Submit a pull request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshishir-dey%2Fch32v103-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshishir-dey%2Fch32v103-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshishir-dey%2Fch32v103-template/lists"}