Repository navigation
stm32: add GD32F425 support - #194
Draft
sendu2wfdx wants to merge 2 commits into
Draft
sendu2wfdx wants to merge 2 commits into
sendu2wfdx wants to merge 2 commits into
Conversation
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>
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.
Summary
Add native Katapult support for the GigaDevice GD32F425 while continuing to reuse the existing STM32F407/STM32F4 implementation.
The series:
GigaDevice GD32F425tomenuconfig;gd32f425while using the compatiblestm32f407xxCMSIS target internally;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:
Generated GD32F425 configuration:
gd32f425stm32f407xxThe 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.