Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Failed to build examples for wch port

未关闭 适合新手
#1,059 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
65/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
zig
领域
embedded-iot

调研方向

从 port/wch/ch32v/src/chips/ch32v003.svd 开始,检查标记为 read/clear 的访问字符串,然后查看 regz 的 SVD 解析器如何处理访问值。使用 zig build -Dexample=empty_ch32v003 复现;当示例构建成功且不再出现报告中的解析失败时,即为完成。

由索引模型根据 Issue 内容生成。

描述

Hi! Trying to build examples for wch port and got an error:

❯ zig version
0.17.0-dev.1936+5a625d5f3
❯ zig build -Dexample=empty_ch32v003
install
└─ install generated to empty_ch32v003.elf
   └─ compile exe empty_ch32v003 debug riscv32-freestanding-eabi
      └─ run exe regz (chips) w
warning(db): invalid access type: 'read/clear'
warning(svd): Failed to parse access string 'read/clear', it must be one of 'read-value', 'write-only', 'read-write', 'writeOnce', or 'read-writeOnce', defaulting to 'read-write'
failed command: ./.zig-cache/o/b359d994ac2ad06c9b5dba134b263811/regz --format svd --output_path ./.zig-cache/o/504071daff23245edfba08b64ae5b7e0/chips ./../../../port/wch/ch32v/src/chips/ch32v003.svd

Perhaps something wrong with port/wch/ch32v/src/chips/ch32v003.svd file

主要语言
Zig
星标
2.3k
派生
198
平均合并
1 天 8 小时
30 天内合并 PR
37

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ZigEmbeddedGroup/microzig 的其他 Issue

查看 ZigEmbeddedGroup/microzig 的全部 Issue

相似的 Issue

更多 Embedded & IoT Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。