You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ch32v): restore -DCH32V30x_D8 on genericCH32V303VCT6 - V303 HAL compiles with V307 (D8C) register/IRQ layout #1120
Severity: HIGH — on CH32V303, every HAL translation unit compiles with the V305/V307 (D8C, connectivity-line) register map and IRQ numbering, while the startup TU links the correct D8 vector table. Interrupts misroute on bench hardware.
— it does not recognize CH32V30x_C at all. So with the flag gone, every HAL/core TU defaults to D8C (V305/V307 connectivity line), while the startup TU — the only TU that includes cores/arduino/ch32/ch32_def_build.h (verified via .d dependency files) — picks startup_ch32v30x_D8.S via its CH32V30x branch. Result: D8C HAL + IRQ enum numbering linked against a D8 vector table, on general-line (V303) silicon.
Bench consequence
Interrupts with IRQn ≥ 58 (TIM8 group, UART4+, DMA2 channels, USBFS) are mis-numbered vs the vector table → attachInterrupt/peripheral IRQs vector to the wrong slot or to nothing.
D8C-only peripherals (ETH, DVP, USBHS) compile fine but bus-fault if touched.
Why the original motivation is moot
#399's redefinition warning no longer exists: since #382, framework sources compile with blanket -w (crates/fbuild-build-mcu/src/ch32v/ch32v_compiler.rs:121-123).
Activity
zackees commentedon Jul 22, 2026
Parent meta: #1130 (2026-07-21 CH32V bench-readiness sweep).