7
31
Fork
You've already forked blackmagic
23

misc: Support for STM32F401CD Blackpill as debug probe #2192

Merged
lasutek merged 1 commit from lasutek/main into main 2026年04月20日 12:53:08 +02:00
lasutek commented 2026年02月09日 16:30:38 +01:00 (Migrated from github.com)
Copy link

Detailed description

Add support for Blackpill board with STM32401CD as debug probe.

Text on MCU (topside of Blackpill board):
STM32F
401CDU6
GQ21H 16i VQ
CHN GQ 739
"Pin 1 mark" "ST logo" "e3" "Z"

Text on backside of Blackpill board:
WeAct
V3.0

Difference between stm32f401cd, and for example the already supported stm32f401ce, is the amount of available Flash. So technically, only the definition of memory region for rom (flash) in the linker script will differ between these MCU's.

Flash / RAM MCU
512 K / 96 K STM32401CE
384 K / 96 K STM32401CD
256 K / 64 K STM32401CC
128 K / 64 K STM32401CB

Your checklist for this pull request

Closing issues

<!-- Filling this template is mandatory --> ## Detailed description Add support for Blackpill board with STM32401CD as debug probe. Text on MCU (topside of Blackpill board): STM32F 401CDU6 GQ21H 16i VQ CHN GQ 739 "Pin 1 mark" "ST logo" "e3" "Z" Text on backside of Blackpill board: WeAct V3.0 Difference between stm32f401cd, and for example the already supported stm32f401ce, is the amount of available Flash. So technically, only the definition of memory region for rom (flash) in the linker script will differ between these MCU's. | Flash / RAM | MCU | | -------------- | ---------- | | 512 K / 96 K | STM32401CE | | 384 K / 96 K | STM32401CD | | 256 K / 64 K | STM32401CC | | 128 K / 64 K | STM32401CB | <!-- Explain the **details** for making this change. * Is a new feature implemented? * What existing problem(s) does the pull request solve? * How does the pull request solve these problems? Please provide enough information so that others can review your pull request. Information embedded in the description part of the commits doesn't count. --> ## Your checklist for this pull request * [x] I've read the [Code of Conduct](https://github.com/blackmagic-debug/blackmagic/blob/main/CODE_OF_CONDUCT.md) * [x] I've read the [guidelines for contributing](https://github.com/blackmagic-debug/blackmagic/blob/main/CONTRIBUTING.md) to this repository * [x] It builds for hardware native (see [Building the firmware](https://github.com/blackmagic-debug/blackmagic?tab=readme-ov-file#building-black-magic-debug-firmware)) * [x] It builds as BMDA (see [Building the BMDA](https://github.com/blackmagic-debug/blackmagic?tab=readme-ov-file#building-black-magic-debug-app)) * [x] I've tested it to the best of my ability * [x] My commit messages provide a useful short description of what the commits do ## Closing issues <!-- put "fixes #XXXX" here to auto-close the issue(s) that your PR fixes (if any). -->
dragonmux changed title from (削除) misc: Support for STM32401CD Blackpill as debug probe (削除ここまで) to misc: Support for STM32F401CD Blackpill as debug probe 2026年04月19日 14:06:10 +02:00
dragonmux approved these changes 2026年04月19日 14:14:49 +02:00
Dismissed
dragonmux left a comment
Copy link

This all LGTM, so please rebase this on main and we'll get it merged.

This all LGTM, so please rebase this on `main` and we'll get it merged.

(Ping to @lasutek so you see the comment. Please use your GH fork of the repo to do the update and we'll use the fetch head of the PR there to update the shadow branch here. PRs, even on archived repos, can still accept changes hence why this works.)

(Ping to @lasutek so you see the comment. Please use your GH fork of the repo to do the update and we'll use the fetch head of the PR there to update the shadow branch here. PRs, even on archived repos, can still accept changes hence why this works.)
First-time contributor
Copy link

I am quite sure that I do not fully understand what to do...
Is it enough if I on GitHub site update my fork using web UI using "Sync fork -> Update branch"?

I am quite sure that I do not fully understand what to do... Is it enough if I on GitHub site update my fork using web UI using "Sync fork -> Update branch"?

No, unfortunately because of how archiving works we can't push new commits to that repo any more - so you'll have to use your working copy.. this makes a couple of presumptions about remote names, but hopefully makes sense enough - using your existing working copy from GitHub:

# Sort out the remotes you have defined, this presumes you have just `origin` pointing at your fork
git remote add upstream https://codeberg.org/blackmagic-debug/blackmagic
git remote set-url origin https://codeberg.org/lasutek/blackmagic
git remote add GitHub git@github.com:lasutek/blackmagic
# Fetch all new commit data and prune now gone branches
git fetch --all --prune
# Rebase your current branch (presumed to be your `main` with your PR changes on) onto current here `main`
git rebase -i upstream/main
# (Force) push the updated branch to GitHub so the fetch head for the PR updates
git push -f GitHub main

Hopefully this makes sense

No, unfortunately because of how archiving works we can't push new commits to that repo any more - so you'll have to use your working copy.. this makes a couple of presumptions about remote names, but hopefully makes sense enough - using your existing working copy from GitHub: ```sh # Sort out the remotes you have defined, this presumes you have just `origin` pointing at your fork git remote add upstream https://codeberg.org/blackmagic-debug/blackmagic git remote set-url origin https://codeberg.org/lasutek/blackmagic git remote add GitHub git@github.com:lasutek/blackmagic # Fetch all new commit data and prune now gone branches git fetch --all --prune # Rebase your current branch (presumed to be your `main` with your PR changes on) onto current here `main` git rebase -i upstream/main # (Force) push the updated branch to GitHub so the fetch head for the PR updates git push -f GitHub main ``` Hopefully this makes sense
First-time contributor
Copy link

Thank you very much for excellent instructions!
I can now see that my fork on GitHub have been updated (hopefully in the correct way).

Thank you very much for excellent instructions! I can now see that my fork on GitHub have been updated (hopefully in the correct way).
dragonmux force-pushed lasutek/main from 5582afbe03 to ee3e0b832d
Some checks failed
ci/woodpecker/pr/build-firmware/11 Pipeline was successful
ci/woodpecker/pr/build-linux/1 Pipeline was successful
ci/woodpecker/pr/build-firmware/20 Pipeline was successful
ci/woodpecker/pr/build-firmware/18 Pipeline failed
ci/woodpecker/pr/build-firmware/19 Pipeline was successful
ci/woodpecker/pr/build-linux/2 Pipeline was successful
ci/woodpecker/pr/build-windows Pipeline was successful
ci/woodpecker/push/build-firmware/5 Pipeline was successful
ci/woodpecker/push/build-firmware/1 Pipeline was successful
ci/woodpecker/push/build-firmware/3 Pipeline was successful
ci/woodpecker/push/build-firmware/4 Pipeline was successful
ci/woodpecker/push/build-firmware/2 Pipeline was successful
ci/woodpecker/push/build-firmware/6 Pipeline was successful
ci/woodpecker/push/build-firmware/9 Pipeline was successful
ci/woodpecker/push/build-firmware/11 Pipeline was successful
ci/woodpecker/push/build-firmware/7 Pipeline was successful
ci/woodpecker/push/build-firmware/12 Pipeline was successful
ci/woodpecker/push/build-firmware/8 Pipeline was successful
ci/woodpecker/push/build-firmware/10 Pipeline was successful
ci/woodpecker/push/build-firmware/13 Pipeline was successful
ci/woodpecker/push/build-firmware/14 Pipeline was successful
ci/woodpecker/push/build-firmware/18 Pipeline failed
ci/woodpecker/push/build-firmware/15 Pipeline was successful
ci/woodpecker/push/build-firmware/16 Pipeline was successful
ci/woodpecker/push/build-firmware/17 Pipeline was successful
ci/woodpecker/push/build-firmware/19 Pipeline was successful
ci/woodpecker/push/build-linux/1 Pipeline was successful
ci/woodpecker/push/build-linux/2 Pipeline was successful
ci/woodpecker/push/build-firmware/20 Pipeline was successful
ci/woodpecker/push/build-windows Pipeline was successful
2026年04月20日 12:46:40 +02:00
Compare
dragonmux dismissed dragonmux's review 2026年04月20日 12:46:40 +02:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Yup, all looks good! We'll get this merged as soon as CI completes.

Yup, all looks good! We'll get this merged as soon as CI completes.
dragonmux deleted branch lasutek/main 2026年04月20日 12:53:20 +02:00
Sign in to join this conversation.
No reviewers
Labels
Clear labels
BMD App
Black Magic Debug App (aka. PC hosted) (not firmware)
BMP Firmware
Black Magic Probe Firmware (not PC hosted software)
Bug
Confirmed bug
Build system
Build system
Can't reproduce
Maintainers can't reproduce this problem
CI
Continuous Integration System
Contribution wanted
User contributions welcome
Documentation
Project documentation
Draft
Work in progress draft
Duplicate
This issue or pull request already exists
Enhancement
General project improvement
Feedback wanted
Requires additional submitter feedback
Foreign Host Board
Non Native hardware to runing Black Magic firmware on
GDB
Issue/PR related to GDB
Good first issue
Good for newcommers
HwIssue Mitigation
Solving or mitigating a Hardware issue in Software
Information Needed
Maintainers need more information
NativeHardware
Official Black Magic Debug Hardware
New Host Board
New hardware to run Black Magic firmware on
New Target
New debug target
Off Topic
Something that does not involve the project in any way
Potential Bug
A potential, unconfirmed or very special circumstance bug
Regression
Bug caused by a regression
User Interest Needed
More user interest required before consideration
User Testing Needed
Looking for user testing reports
Won't fix
Outside of the project scope or works as intended
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
blackmagic-debug/blackmagic!2192
Reference in a new issue
blackmagic-debug/blackmagic
No description provided.
Delete branch "lasutek/main"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?