Skip to content

boards: weact: blackpill_h523ce: Add board support #92353

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

Conversation

filipembedded
Copy link
Contributor

This adds initial support for a new WeAct STM32H523CE board - blackpill_h523ce.

@filipembedded filipembedded force-pushed the blackpill_h523ce_board_support branch from db0b9a8 to ebca689 Compare June 28, 2025 17:13
@nordicjm nordicjm requested review from kartben and erwango June 30, 2025 09:27
@erwango erwango added this to the v4.3.0 milestone Jun 30, 2025
@filipembedded filipembedded force-pushed the blackpill_h523ce_board_support branch from ebca689 to 6a23213 Compare July 17, 2025 23:13
@filipembedded filipembedded changed the title boards: weact: blackpill_h523ce: Add support for blackpill_h523ce board boards: weact: blackpill_h523ce: Add board support Jul 17, 2025
Copy link
Contributor

@michalpiekos michalpiekos left a comment

Choose a reason for hiding this comment

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

LGTM but please solve compliance checks and documentation build issues

@filipembedded filipembedded requested a review from nordicjm July 18, 2025 06:59
Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

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

Please make required changes to enable the support for the actual SoC you're using, otherwise LGTM!

Comment on lines +8 to +9
#include <st/h5/stm32h533Xe.dtsi>
#include <st/h5/stm32h533retx-pinctrl.dtsi>
Copy link
Member

Choose a reason for hiding this comment

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

Please add the h523Xe.dtsi file you need this will avoid unexpected issues if some later changes are made to the h533Xe.dtsi file.

Same thing for the -pinctrl.dtsi file. You should use stm32h523cetx-pinctrl.dtsi and you don't even need to create it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean that I need to add stm32h523Xe.dtsi file under dts/arm/st/ht/ and it can be a copy of stm32h533Xe.dtsi, that is already supported as a SOC?

And I can just include stm32h523Xe-pinctrl.dtsi without creating it?

I added stm32h533 as a SOC because it is almost the same chip as a stm32h523, I mean, they share same documentation: STM32H523/533

Copy link
Member

Choose a reason for hiding this comment

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

Do you mean that I need to add stm32h523Xe.dtsi file under dts/arm/st/ht/ and it can be a copy of stm32h533Xe.dtsi, that is already supported as a SOC?

Yes, you need to add it (at least someone needs to do it and that would be nice that it is you as you're the first one needing it). Not as a copy though, you need to follow the inclusion scheme:
Diff between 523 and 533 is (S)AES and OTFDEC, which are not supported today. So basically, you can:

  • rename existing stm32h533.dtsi to stm32h523.dtsi
  • create new stm32h533.dtsi that include stm32h523.dtsi (as indeed they are equivalent today)
  • add the stm32h523Xe.dtsi (which is indeed a mere copy of stm32h533Xe.dtsi)

Please note that this work has to be done in a separate commit in this same PR.

I agree that today, functionally, this is exactly the same as what you have done. But if (S)AES and OTFDEC support is added, this may require follow up support in your board.

And I can just include stm32h523Xe-pinctrl.dtsi without creating it?

Yes, this one is already available (we generate them automatically).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for a such detailed answer! I understand what I have to do now.

@erwango erwango self-assigned this Jul 18, 2025
@filipembedded filipembedded force-pushed the blackpill_h523ce_board_support branch from 6a23213 to 0b58b33 Compare July 18, 2025 22:20
@zephyrbot zephyrbot added the platform: STM32 ST Micro STM32 label Jul 18, 2025
@filipembedded filipembedded force-pushed the blackpill_h523ce_board_support branch from 0b58b33 to 334b6ea Compare July 19, 2025 09:10
@filipembedded filipembedded force-pushed the blackpill_h523ce_board_support branch 2 times, most recently from ce720dc to 5b17134 Compare July 19, 2025 18:26
Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

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

Thanks for having added the SoC support.
Few changes for consistency and we'll be good to go:

  • Put the SoC commit first
  • Group the changes on the board in a single commit

Provide support for STM32H523XE.

Signed-off-by: Filip Stojanovic <[email protected]>
This adds support for the WeAct blackpill_h523ce board.

Signed-off-by: Filip Stojanovic <[email protected]>
@filipembedded filipembedded force-pushed the blackpill_h523ce_board_support branch from 5b17134 to c259b2e Compare July 21, 2025 20:04
Copy link

@filipembedded filipembedded requested a review from erwango July 21, 2025 22:01
Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

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

Here we go. Good job!

@filipembedded
Copy link
Contributor Author

Here we go. Good job!

Thank you Erwan :)

@kartben
Copy link
Contributor

kartben commented Jul 22, 2025

Here we go. Good job!

Thank you Erwan :)

looks like you have quite a few CI issues to address tho :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants