Fix build for STM32C051xx boards#2791
Merged
fpistm merged 2 commits intostm32duino:mainfrom Oct 20, 2025
Merged
Conversation
fpistm
requested changes
Aug 18, 2025
Member
fpistm
left a comment
There was a problem hiding this comment.
First thanks for your contribution,
It misses several update to be properly added:
- Reference all the entries in the boards.txt
- Reference in the README.md
- Add a default clock config
system/Drivers/STM32C0xx_HAL_Driver/Inc/stm32c0xx_hal_gpio_ex.h
Outdated
Show resolved
Hide resolved
Member
|
I've submitted issue for the AF0: STMicroelectronics/stm32c0xx-hal-driver#4 |
See STMicroelectronics/stm32c0xx-hal-driver#4 Signed-off-by: Nessotrin <nessotrin@hotmail.fr> Co-authored-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Nessotrin <nessotrin@hotmail.fr> Co-authored-by: Frederic Pillon <frederic.pillon@st.com>
fpistm
approved these changes
Oct 20, 2025
Member
fpistm
left a comment
There was a problem hiding this comment.
Hi @nessotrin
I've rework your PR to not modify the HAL GPIO.
I've also completed the STM32C051C addition.
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
This PR adds the ability to compile for STM32C051xx based boards. Most of the infrastructure was already there.
The STM32C051xx is a recently upgraded version of the STM32C031xx with 2x more flash.
The link script still mentions the STM32C031CxTx. Since it is auto-generated I chose to leave it as is. Someone with STM32CubeIDE could generate a new one, but I suspect there would be no difference whatsoever.