Skip to content

Fix build for STM32C051xx boards #2791

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

nessotrin
Copy link

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.

  • Add ldscript (direct copy from STM32C031xx)
  • Fix #ifdef missing the STM32C051xx

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.

Pin GPIO_AF0_USART2 is used by PeripheralPins.c

Signed-off-by: Nessotrin <nessotrin@hotmail.fr>
Direct copy from STM32C031xx. It looks compatible.

Signed-off-by: Nessotrin <nessotrin@hotmail.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant