-
Notifications
You must be signed in to change notification settings - Fork 2.1k
boards: add STM32C0116-DK and STM32C0316-DK [new PR] #21776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I currently can not get the boards running right. The STM32C0116-DK can be flashed, but it appears that some clock configuration is wrong. The blinky example blinks way too fast even though ztimer is used. This probably also messes up the baudrate which is why no communication with the ST-Link is possibly even though I changed the pin and interrupt etc assignments.
The STM32C0316-DK cannot be flashed currently (neither with Linux nor WSL), I get this error. That board doesn't have a built-in ST-Link but ships with an ST-Link Mini V3.
Most likely it'll have similar issues as the C0116-DK as well.
### Flashing Target ###
Open On-Chip Debugger 0.12.0+dev-02241-g3fd975941-dirty (2025-10-14-09:55)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Warn : Transport "swd" was already selected
DEPRECATED! use 'tcl port' not 'tcl_port'
DEPRECATED! use 'telnet port', not 'telnet_port'
DEPRECATED! use 'gdb port', not 'gdb_port'
Error: libusb_open() failed with LIBUSB_ERROR_ACCESS
Error: open failed
Okay two issues: First of all OpenOCD does not update the udev rules when installing, so it did not know about the ST-Link V3 yet. |
Now this is interesting. When using This is what I mean with "erratic": document_5436140939770890711.mp4 |
393d402 to
a35ba66
Compare
This is fixed thanks to a hint from Kaspar. The culprit was a missing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found nothing to really complain about. As with the other PR, I will simply trust you that it works since this is a quasi second round review PR and your work in itself is already a review of the old code. (And once again thank you for working on this and ty to the original author for the OG code) [and I also don't have the hardware 🙈]
|
I still have to test the addition with the |
Lets wait for the Digikey overlords to decide this PRs fate then 😛 |
485beef to
93f98c3
Compare
93f98c3 to
7caafd0
Compare
|
Hooray |
|
Thanks for the review :) |

Contribution description
Unfortunately the PR #20939 that added several new STM32C0 based boards went stale, so I took the liberty to take it over.
The fixup commit changes the copyright notice to the new SPDX format and the headerguards to #pragma once as well as fixing a typo in the KConfig file. The flashing information now points to the guide merged in #21767 (following the scheme from #21337).
This PR is the second part #21775 because I don't have the hardware yet. After #21775 is merged, theHardware arrive, PR is merged.DELETEMEcommit will be removed.TODO: Apply the comments of benpicco's review from the other PR.Testing procedure
tbd as soon as I have the hardware.
Issues/PRs references
This is continued from #20939 (and will close it).
Tracking Issue #19264.