Skip to content

stm32: add GD32F425 support - #194

Draft
sendu2wfdx wants to merge 2 commits into
Arksine:masterfrom
sendu2wfdx:gd32f425-support-v2
Draft

sendu2wfdx wants to merge 2 commits into
Arksine:masterfrom
sendu2wfdx:gd32f425-support-v2

Conversation

@sendu2wfdx

Copy link
Copy Markdown

Summary

Add native Katapult support for the GigaDevice GD32F425 while continuing to reuse the existing STM32F407/STM32F4 implementation.

The series:

  • ports the minimal GD32F4 USB compatibility changes from Klipper PR stm32: Add GD32F4 USB compatibility option Klipper3d/klipper#7390;
  • adds GigaDevice GD32F425 to menuconfig;
  • reports the MCU as gd32f425 while using the compatible stm32f407xx CMSIS target internally;
  • runs at the conservative STM32F407-compatible 168 MHz clock;
  • adds USB, hardware-serial, and classic-CAN build configurations.

The USB compatibility path is enabled automatically only when GD32F425 and USB are selected. Ordinary STM32F407 builds retain the existing path.

Attribution

The USB changes are based on the hardware investigation in Klipper3d/klipper#7390 by Koshik Oleg / @BuildLabDIY and Ahmed Sheikh / @MisterSheikh. Their authorship and co-authorship are preserved in the corresponding commit.

Validation

Build-tested from current Katapult master:

  • GD32F425 USB CDC with 32 KiB application offset: PASS
  • GD32F425 hardware serial: PASS
  • GD32F425 classic CAN: PASS
  • STM32F407 USB regression build: PASS

Generated GD32F425 configuration:

  • exported MCU: gd32f425
  • internal compatible CMSIS target: stm32f407xx
  • clock: 168 MHz
  • Flash/RAM link profile: 512 KiB / 128 KiB
  • GD32 USB compatibility: enabled for USB builds

The equivalent minimal USB changes have been hardware-tested in Klipper on the QIDI Q2 GD32F425 mainboard. This Katapult port still needs direct QIDI Q2 bootloader enumeration, flashing, and application-handoff validation, so the PR is opened as a draft.

BuildLabDIY and others added 2 commits September 29, 2026 20:17
Port the minimal hardware-tested USB changes from Klipper PR #7390 to Katapult: use the GD32 GCCFG sequence, a 64-byte EP0, and rearm bulk OUT on OEPINT transfer completion.

Co-authored-by: Ahmed Sheikh <ahmed.ali.sheikh1998@gmail.com>
Signed-off-by: Koshik Oleg <qwertyboy58@gmail.com>
Signed-off-by: Xiaoyue Cui <2508041672@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants