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

boards: weact: Add support for WeAct STM32H5 Core Board #84180

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

Conversation

magiczny-kacper
Copy link

Low cost STM32H5 series development board with bare minimum to run the MCU

Copy link

Hello @magiczny-kacper, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

@JarmouniA
Copy link
Collaborator

Hi @magiczny-kacper, thanks for your contribution. Please see remarks in PR #84033 and apply the relevant ones here. Also squash the last 2 commits, and preferably put the SoC dtsi definition in a separate commit.

@JarmouniA
Copy link
Collaborator

@magiczny-kacper the 1st commit title should be dts: st: h5: add STM32H562xG SoC support

Added STM32H562xG dts file

Signed-off-by: Kacper Brzostowski <[email protected]>
@magiczny-kacper magiczny-kacper force-pushed the weact_h5_core branch 2 times, most recently from 5bf7914 to 00aa596 Compare January 19, 2025 11:31
Supported Features
==================

The Zephyr nucleo_h563zi board configuration supports the following hardware features:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
The Zephyr nucleo_h563zi board configuration supports the following hardware features:
The Zephyr ``weact_stm32h5_core`` board supports the following hardware features:

status = "okay";
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
pinctrl-names = "default";

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change

@magiczny-kacper magiczny-kacper force-pushed the weact_h5_core branch 7 times, most recently from 5f8f686 to ffcdc29 Compare January 23, 2025 15:35
@zephyrbot zephyrbot added area: ADC Analog-to-Digital Converter (ADC) area: DAC Digital-to-Analog Converter labels Jan 23, 2025
@JarmouniA JarmouniA removed the request for review from martinjaeger January 23, 2025 16:32
@JarmouniA JarmouniA removed area: ADC Analog-to-Digital Converter (ADC) area: DAC Digital-to-Analog Converter labels Jan 23, 2025
@zephyrbot zephyrbot added the area: ADC Analog-to-Digital Converter (ADC) label Jan 23, 2025
@zephyrbot zephyrbot requested a review from anangl January 23, 2025 17:02
.. _STM32CubeProgrammer:
https://www.st.com/en/development-tools/stm32cubeprog.html

.. _OpenOCD official Github mirror:
Copy link
Collaborator

Choose a reason for hiding this comment

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

not used

@JarmouniA JarmouniA removed the request for review from anangl January 23, 2025 17:24
@JarmouniA JarmouniA removed the area: ADC Analog-to-Digital Converter (ADC) label Jan 23, 2025
@magiczny-kacper magiczny-kacper force-pushed the weact_h5_core branch 2 times, most recently from 1dc251e to 0c198ee Compare January 23, 2025 18:09
https://www.st.com/resource/en/reference_manual/rm0481-stm32h52333xx-stm32h56263xx-and-stm32h573xx-armbased-32bit-mcus-stmicroelectronics.pdf

.. _STMicroelectronics OpenOCD Github:
https://github.com/STMicroelectronics/OpenOCD/tree/openocd-cubeide-r6
Copy link
Collaborator

Choose a reason for hiding this comment

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

still not removed

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, forgot to add it to commit

- xtools
ram: 640
flash: 1024
supported:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry I didn't catch this before, we only put tags here for devices that are enabled in board DTS, I don't see any SPI, I3C, CAN,.. nodes.

Copy link
Collaborator

@JarmouniA JarmouniA left a comment

Choose a reason for hiding this comment

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

Great work, thanks!

@magiczny-kacper magiczny-kacper force-pushed the weact_h5_core branch 3 times, most recently from 162ad43 to 25e5909 Compare January 24, 2025 14:56
@magiczny-kacper
Copy link
Author

magiczny-kacper commented Jan 24, 2025

@JarmouniA thank you too! I have fixed typos to pass CI

Copy link
Collaborator

@nordicjm nordicjm left a comment

Choose a reason for hiding this comment

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

Review requested without fixing raised issues

Comment on lines 196 to 197
Replace :code:`<tty_device>` with the port where the board XIAO BLE
can be found. For example, under Linux, :code:`/dev/ttyACM0`.
Copy link
Member

Choose a reason for hiding this comment

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

Replace :code:`<tty_device>` with the port where the board can be found.
For example, under Linux, :code:`/dev/ttyACM0`.

Copy link
Author

Choose a reason for hiding this comment

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

Changed

Comment on lines 5 to 7
board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw")

board_runner_args(pyocd "--target=stm32h562rgtx")

board_runner_args(jlink "--device=STM32H562RG" "--reset-after-load")

board_runner_args(dfu-util "--pid=0483:df11" "--alt=0" "--dfuse")

board_runner_args(openocd "--tcl-port=6666")
board_runner_args(openocd --cmd-pre-init "gdb_report_data_abort enable")
board_runner_args(openocd "--no-halt")

# Keep first
include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
include(${ZEPHYR_BASE}/boards/common/dfu-util.board.cmake)
Copy link
Member

Choose a reason for hiding this comment

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

If the only flashing method available is usb-dfu, let's remove others for correctness and clarity.
Users using the board with ST-Link will be able to add required lines.
Optionaly you can keep them commented

Copy link
Author

Choose a reason for hiding this comment

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

Changed

Comment on lines 102 to 103
+-----------+------------+-------------------------------------+
| I3C | on-chip | i3c bus |
Copy link
Member

Choose a reason for hiding this comment

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

Not available, please remove.

Copy link
Author

Choose a reason for hiding this comment

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

Removed

Comment on lines 93 to 94
| PWM | on-chip | PWM |
+-----------+------------+-------------------------------------+
Copy link
Member

Choose a reason for hiding this comment

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

Not enabled, please remove

Copy link
Author

Choose a reason for hiding this comment

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

Removed

Comment on lines 79 to 80
| BKP SRAM | on-chip | Backup SRAM |
+-----------+------------+-------------------------------------+
Copy link
Member

Choose a reason for hiding this comment

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

Not enabled please remove

Copy link
Author

Choose a reason for hiding this comment

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

Removed

Comment on lines 77 to 78
| ADC | on-chip | ADC Controller |
+-----------+------------+-------------------------------------+
Copy link
Member

Choose a reason for hiding this comment

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

Not enabled, please remove

Copy link
Author

Choose a reason for hiding this comment

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

Removed

Comment on lines 85 to 86
| DAC | on-chip | DAC Controller |
+-----------+------------+-------------------------------------+
Copy link
Member

Choose a reason for hiding this comment

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

Not enabled, please remove.

Copy link
Author

Choose a reason for hiding this comment

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

Removed

flash: 1024
supported:
- gpio
- backup_sram
Copy link
Member

Choose a reason for hiding this comment

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

To be removed.

Copy link
Author

Choose a reason for hiding this comment

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

Removed

Low cost STM32H5 series development board with bare minimum to run the MCU

Signed-off-by: Kacper Brzostowski <[email protected]>

gpio_keys {
compatible = "gpio-keys";
button_0: button0 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

newline


leds {
compatible = "gpio-leds";
led_0: led0 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

newline

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.

5 participants