Skip to content
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

Add support for generic STM32G030F6 #1589

Merged
merged 3 commits into from
Dec 16, 2021
Merged

Add support for generic STM32G030F6 #1589

merged 3 commits into from
Dec 16, 2021

Conversation

ademuri
Copy link
Contributor

@ademuri ademuri commented Dec 13, 2021

This adds support for generic STM32G030F6-based boards. I have a custom board which uses this processor. I partially tested the CheckVariant sketch - I verified that the LED blinks slowly, but did not check the serial output.

@fpistm fpistm requested a review from ABOSTM December 13, 2021 08:22
@fpistm fpistm added the new variant Add support of new bard label Dec 13, 2021
@fpistm
Copy link
Member

fpistm commented Dec 13, 2021

Hi @ademuri
Thanks for the PR, @ABOSTM will review it.
As a first feedback, I would recommend to update the generic clock config.

Copy link
Contributor

@ABOSTM ABOSTM left a comment

Choose a reason for hiding this comment

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

@ademuri
Thanks for this Pull Request. As said @fpistm, it would be better to redefine the generic clock config to benefit from better performances
https://github.com/stm32duino/wiki/wiki/Add-a-new-variant-(board)#3---generic-system-clock-configuration
otherwise you stuck on default reset clock (which is slow).

README.md Outdated Show resolved Hide resolved
@ademuri
Copy link
Contributor Author

ademuri commented Dec 15, 2021

Updated the clock.

Copy link
Contributor

@ABOSTM ABOSTM left a comment

Choose a reason for hiding this comment

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

Almost good.
See inline comment.
Also could you run Astyle to fix CI issue:
https://github.com/stm32duino/wiki/wiki/Astyle

variants/STM32G0xx/G030F6P/generic_clock.c Outdated Show resolved Hide resolved
@fpistm fpistm added this to the 2.2.0 🎄 🎅 milestone Dec 16, 2021
Copy link
Contributor

@ABOSTM ABOSTM left a comment

Choose a reason for hiding this comment

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

LGTM

@fpistm fpistm merged commit 8c7db46 into stm32duino:main Dec 16, 2021
@stm32duino stm32duino deleted a comment from vik0asth Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new variant Add support of new bard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants