Repository navigation
Add the Adafruit Metro CH32V407 and CH32V467 to zephyr-cp - #11900
Merged
Merged
Conversation
covered_by_areas is a variable length array, so it starts with whatever is on the stack. fa_cb only ever sets entries to true. A stray true marks a flash device as covered by a flash area, and supervisor_flash_init() then skips it, so CIRCUITPY is not created on that device. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two WCH RISC-V Metro boards that ship with adaboot. CircuitPython links into adaboot's 892 KB app slot, and CIRCUITPY lives on the SPI NOR. - boards: board.conf, board.overlay, console.overlay, circuitpython.toml and autogen_board_info.toml for each board, plus a pins binding for the named pins that are not on the Arduino header. - compat2driver.py: wch_esig (hwinfo) and wch_usbhs2 (usb/udc). Both match gen_compat2driver.py run against the adafruit/zephyr fork; a full regeneration would add about 900 unrelated lines. - west.yml: stop blocking hal_wch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pin the adafruit/zephyr and adafruit/adaboot branches that add the CH32V407 and CH32V467. Move both to the merge commits once they land. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 18, 2026
The Metro CH32V407 and CH32V467 are the first RISC-V boards in the port. CI only installed arm-zephyr-eabi, so their builds stopped at "riscv64-zephyr-elf-gcc not found". Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
dhalbert
requested changes
Nov 18, 2026
adafruit/zephyr#21 and adafruit/adaboot#19 are merged. Point the pins at their merge commits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dhalbert
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds two new boards to the Zephyr port: the Adafruit Metro CH32V407 and Metro CH32V467.
Why
These are the first WCH RISC-V boards to run CircuitPython.
Dependencies
west.ymlpins it.west.ymlpins it.Board details
busio.UART.Change for all zephyr-cp boards
supervisor/flash.cused an array before setting it, so a flash device could be skipped and CIRCUITPY not created.It is its own commit.
Testing
Rev A boards, built from this branch with the two PRs above.
ulab6.12.1: sum, mean, std, det, inv, fftgifioandjpegioimport,zlibdecompressautogen_board_info.tomlmatches a fresh buildNot tested with this build: GPIO, I2C, SPI and UART pins, the NeoPixel, the microSD slot.
Board definitions and testing by Claude, reviewed by me.