Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Failed to build examples for wch port

Open Beginner friendly
#1,059 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
zig
Domain
embedded-iot

Research direction

Start with port/wch/ch32v/src/chips/ch32v003.svd and inspect the access string reported as read/clear, then check how the regz SVD parser handles access values. Reproduce with zig build -Dexample=empty_ch32v003; done when the example builds without the reported parse failure.

Written by the indexing model from the issue text.

Description

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

Dominant language
Zig
Stars
2.3k
Forks
198
Avg merge
1d 8h
Merged PRs (30d)
37

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ZigEmbeddedGroup/microzig

All issues in ZigEmbeddedGroup/microzig

Similar issues

More Embedded & IoT issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.