Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

stm32c0: Add ID codes for C0[5,7,9]x lines - #2162

Merged
dragonmux merged 1 commit into
blackmagic-debug:mainfrom
desertsagebrush:feat/stm32c071_id_code
Nov 11, 2025
Merged

stm32c0: Add ID codes for C0[5,7,9]x lines#2162
dragonmux merged 1 commit into
blackmagic-debug:mainfrom
desertsagebrush:feat/stm32c071_id_code

Conversation

@desertsagebrush

Copy link
Copy Markdown
Contributor

Detailed description

Adds in ID codes for the STM32C0[5,7,9]x microcontroller lines. Note that this doesn't distinguish yet between the C091 and C092 lines despite them having different amounts of SRAM (36kiB vs 30kiB), as there doesn't seem to be an easy way to check that.

Tested on a STM32C071 Nucleo board.

Your checklist for this pull request

@dragonmux dragonmux added this to the v2.1 release milestone Nov 11, 2025
@dragonmux dragonmux added the New Target New debug target label Nov 11, 2025

@dragonmux dragonmux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only got the one review note, so other than the CI failures, once that's addressed we'll be happy to approve and merge this.

Comment thread src/target/stm32g0.c Outdated
Note that this doesn't distinguish yet between the C091 and C092 lines,
despite them having different amounts of SRAM.

@dragonmux dragonmux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, merging. Thank you for the contribution!

@dragonmux
dragonmux merged commit e1505ef into blackmagic-debug:main Nov 11, 2025
38 of 39 checks passed
@JohnAZoidberg

Copy link
Copy Markdown

Cool, thanks!

But how can I get a working build with this?
CI native firmware builds fail now :(

@JohnAZoidberg

JohnAZoidberg commented Nov 28, 2025

Copy link
Copy Markdown

I managed to cherry-pick this changed on top of v2.0.0, resolve the conflicts and locally build it: https://github.com/JohnAZoidberg/blackmagic/tree/stm32c071
But even there CI doesn't build.

I built it locally and it can work with blackmagic hardware and Nucleo STM32C071.

@dragonmux

dragonmux commented Nov 28, 2025

Copy link
Copy Markdown
Member

We're aware of the CI failures, and part of that is down to a .yml file for the config having not yet been updated till #2167, and the other part is because of an upstream fault on the compilers - ARM reorganised their CDN and broke the checksums on all downloads, thus the GHA block we use to get the compilers is having to do updates.

For what it's worth, you didn't need to git cherry-pick at all - just grab main and build that. It has the STM32C0 additions and a pile of extra fixes which you'll benefit from. If it doesn't fit, turn off a target family like renesas to reduce the build size.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

New Target New debug target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants