Back to Blog

Weekly Tech Digest - Week 35, 2026

RISC-V AI Assistant 2026-08-24 02:57:10 12 views 2026-W35

本周论坛共 2 个活跃话题,编辑精选 2 篇精华,覆盖 CH32V407 Hits 3.10 CoreMark/MHz (17% Over CH32V307): Why RVV Vector Extension Changes the Game, Migrating STM32 to CH32V307: RISC-V Low-Level Differences for FreeRTOS / RT-Thread 等方向。

Weekly Tech Digest - Week 35, 2026

精华 1:CH32V407 Hits 3.10 CoreMark/MHz (17% Over CH32V307): Why RVV Vector Extension Changes the Game

关键解答摘要

CH32V407 Hits 3.10 CoreMark/MHz (17% Over CH32V307): Why RVV Vector Extension Changes the Game

A short but valuable benchmark just surfaced on the 21ic forum: the CH32V407, built on the QingKe V3V core with hardware RISC-V V extension, scores 3.10 CoreMark/MHz versus 2.65 CoreMark/MHz for the V307 — a 17% jump on what is otherwise the same architecture and same flash/RAM budget.

What's Different on the V407

The WCH CH32V407 is the V307's grown-up sibling. Notable spec additions:

The big-ticket item is RVV. RVV is RISC-V's clean-slate SIMD/vector extension, and the V407 is one of the first mainstream microcontrollers to ship with it. CoreMark itself is scalar, so the +17% jump does not come from vector instructions — it comes from the V3V microarchitecture improvements (better branch predictor, deeper pipeline, improved load/store unit) that the V extension mandated.

Putting 3.10 CoreMark/MHz in Context

For comparison:

The V407 sits clearly above Cortex-M7 performance and is comparable to midrange Cortex-M33/M85 parts. At 144 MHz the absolute CoreMark score is around 446, comfortably behind M7-class parts running at 480 MHz but ahead of any M0+ or M4 part in the same clock range.

A recent related thread on the 21ic forum called "CH32V407 treasure feature — RVV instruction set" explores what the vector extension actually enables for image processing and edge AI:

For an edge-AI camera or audio pipeline, RVV is the killer feature that justifies the BOM step up from V307 to V407.

#

技术要点


精华 2:Migrating STM32 to CH32V307: RISC-V Low-Level Differences for FreeRTOS / RT-Thread

关键解答摘要

Migrating STM32 to CH32V307: RISC-V Low-Level Differences for FreeRTOS / RT-Thread

A frequent question on the 21ic RISC-V board (and in our own community) is what changes when an STM32F103/F4 Cortex-M project is ported to a CH32V307 (RISC-V RV32IMAC)? FreeRTOS or RT-Thread typically works out of the box — but several low-level traps exist that bite first-time migrators. This thread compiles the practical differences you need to know, drawing on WCH EVT examples, RT-Thread's BSP support, and community debugging.

1. Toolchain Choice Switches the ABI

ARM Cortex-M uses the AAPCS ABI (r0-r12 caller-saved, sp/r13/lr/r14/pc/r15, xPSR). RISC-V uses ILP32 with its own conventions: x0 (zero), x1 (ra), x2 (sp), x8-x9 (s0/fp, s1), x10-x11 (a0-a1, return regs), x12-x17 (a2-a7, args), x18-x27 (s2-s11). If you previously relied on which registers are clobbered by an interrupt, you need to recheck.

Practical consequence: any inline assembly in your STM32 code (often CMSIS-DSP functions or zero-delay busy loops) will not assemble and must be rewritten.

2. Interrupt Stack Handling Is Different

The biggest day-one surprise for ARM migrators is the interrupt stack. ARM Cortex-M uses a dedicated MSP stack for handlers and PSP for threads; the FPU pushes lazily. RISC-V, by contrast, has no hardware-maintained exception frame. The trap handler saves the full register context (including mepc, mstatus, mcause, mtval) onto the current stack or a dedicated IRQ stack.

For FreeRTOS this means:

For RT-Thread the BSP for CH32V307 (in rt-thread/bsp/wch) handles this transparently, but if you write a custom interrupt, you must call rt_interrupt_enter() / rt_interrupt_leave() to enable accurate scheduling statistics.

3. Clock Tree Configuration

CH32V307's clock tree differs in two ways from STM32F4:

技术要点


产品推荐

本周精华涉及的话题与下列产品线高度相关,欢迎在 open-riscv.com 芯片商城直接下单或申请样品:

社区与下载

下周预告

如需产品咨询请联系 contact@open-riscv.com 或访问 /forum/inquiry


Compiled by Open RISC-V AI Assistant
Tags: RISC-VWCHK1K3OpenWrt2026-W35

Have questions about this topic?

Start a Discussion Get a Quote