-
Notifications
You must be signed in to change notification settings - Fork 8.2k
boards: ruiside: art-pi2: add minimum support #88185
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
Conversation
dts/bindings/vendor-prefixes.txt
Outdated
| ronoth Ronoth | ||
| roofull Shenzhen Roofull Technology Co, Ltd | ||
| roseapplepi RoseapplePi.org | ||
| rt-thread RT-Thread |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend using the foundation's name, if available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a company, Shanghai Ruiside Electronic Technology Co., Ltd. https://www.rt-thread.org/about.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weirdly, there is another entity Real-Thread Information Technology Limited mentioned here https://www.rt-thread.org/account/user/terms.html
and here https://www.rt-thread.io/account/user/policy.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think Shanghai Ruiside Electronic Technology Co., Ltd. is the correct company name. RT-Thread is a trademark owned by this company, as states in this official article (in Chinese). Also in China, this company is the official distributor and manufacturer of RT-Thread boards, including the ART-Pi2.
boards/rt-thread/art_pi2/board.yml
Outdated
| @@ -0,0 +1,6 @@ | |||
| board: | |||
| name: art_pi2 | |||
| full_name: RT-Thread ART-Pi2 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| full_name: RT-Thread ART-Pi2 | |
| full_name: ART-Pi2 |
What's more, I cannot find any reference to this board online -- is this really how the board is named or is this a "rev. 2" of the ART-Pi?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer taking this as separate board named "ART-Pi2", distinct from ART-Pi with different mcu and other features.
Documentation can be found here: sdk-bsp-stm32h7r-realthread-artpi2
Schematics are available here: schematics
For clarity:
- ART-Pi2:
- New board featuring STM32H7R7 (this PR)
- Just released in February, 2025, so there is not much reference online
- Will be available on AliExpress and Mouser soon
- ART-Pi:
- Different board featuring STM32H750, released in 2020
- Available on AliExpress and Mouser
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks for clarifying!
JarmouniA
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this vendor using the name RT-Thread, which is a well-known open-source RTOS? https://en.m.wikipedia.org/wiki/RT-Thread
Is this coming from the same company?
|
Yes, this board comes from the same company that created RT-Thread RTOS. These development boards (ART-Pi and ART-Pi2) are officially designed and produced by the RT-Thread team to showcase their RTOS capabilities and provide reference hardware for developers. While the board's original SDK is based on RT-Thread RTOS, I'm working on porting it to Zephyr to provide users with an alternative RTOS option. |
| :goals: debug | ||
|
|
||
| .. _ART-Pi2 website: | ||
| https://github.com/RT-Thread-Studio/sdk-bsp-stm32h7r-realthread-artpi2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be referencing repos dedicated to other RTOSs in Zephyr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not?
@kartben just wondering if it's really necessary, that's all.
| https://www.st.com/resource/en/reference_manual/rm0477-stm32h7rx7sx-armbased-32bit-mcus-stmicroelectronics.pdf | ||
|
|
||
| .. _ART-Pi2 board documents: | ||
| https://github.com/RT-Thread-Studio/sdk-bsp-stm32h7r-realthread-artpi2/tree/master/documents |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the info found here is specific to RT-Thread RTOS (plus not in English). Info that is relevant to Zephyr should be added in the board's doc directly & this reference should be removed.
| https://github.com/RT-Thread-Studio/sdk-bsp-stm32h7r-realthread-artpi2/tree/master/documents | ||
|
|
||
| .. _OpenOCD installing Debug Version: | ||
| https://github.com/zephyrproject-rtos/openocd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not used, to be removed.
| https://github.com/zephyrproject-rtos/openocd | ||
|
|
||
| .. _OpenOCD installing with ST-LINK V3 support: | ||
| https://mbd.kleier.net/integrating-st-link-v3.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not used.
| https://mbd.kleier.net/integrating-st-link-v3.html | ||
|
|
||
| .. _STM32CubeIDE: | ||
| https://www.st.com/en/development-tools/stm32cubeide.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not used
| Debugging | ||
| ========= | ||
|
|
||
| You can debug an application in the usual way. Here is an example for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with OpenOCD? if yes, is it the one included with Zephyr SDK on Linux?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually debuging and flashing don't work with the OpenOCD included with Zephyr SDK on Linux, removed it, thank you
| The board is configured to be flashed using west `STM32CubeProgrammer`_ runner, | ||
| so its :ref:`installation <stm32cubeprog-flash-host-tools>` is required. | ||
|
|
||
| Alternatively, pyocd or openocd can also be used to flash the board using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pyOCD, OpenOCD
83df3b9 to
b6bee33
Compare
dts/bindings/vendor-prefixes.txt
Outdated
| ronoth Ronoth | ||
| roofull Shenzhen Roofull Technology Co, Ltd | ||
| roseapplepi RoseapplePi.org | ||
| rt-thread Shanghai Ruiside Electronic Technology Co., Ltd. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rt-thread -> ruiside, the same for board folder name.
boards/rt-thread/art_pi2/art_pi2.dts
Outdated
| #include <zephyr/dt-bindings/input/input-event-codes.h> | ||
|
|
||
| / { | ||
| model = "RT-Thread ART-Pi2 board"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| model = "RT-Thread ART-Pi2 board"; | |
| model = "Ruiside Electronic ART-Pi2 board"; |
boards/ruiside/art_pi2/art_pi2.dts
Outdated
|
|
||
| / { | ||
| model = "Ruiside Electronic ART-Pi2 board"; | ||
| compatible = "Ruiside,art-pi2"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| compatible = "Ruiside,art-pi2"; | |
| compatible = "ruiside,art-pi2"; |
boards/ruiside/art_pi2/art_pi2.yaml
Outdated
| - watchdog | ||
| - adc | ||
| - entropy | ||
| vendor: Ruiside |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| vendor: Ruiside | |
| vendor: ruiside |
| # Enable HW stack protection | ||
| CONFIG_HW_STACK_PROTECTION=y | ||
|
|
||
| # enable uart driver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use proper capitalization of nouns in code comments (e.g. UART and not uart, CMake and not cmake).
And use capitals for first letter of comments
|
About:
The commit you're pointing at is merged in hal_stm32 already. Can you clarify the expectation here ? |
It seems like this commit anly add |
a85e82f to
cc45cc9
Compare
|
rebased to main to address dependency issue, dear reviewers please revisits. |
|
For future note: to get reviewers to know they need to check things, in the top right under reviewers, click the refresh button next to the names, have done it for you |
d429e12 to
ea6eb92
Compare
- introduced a new vendor ruiside, updated `dts/bindings/vendor-prefixes.txt` - add art-pi2 board basic support Signed-off-by: Shan Pen <[email protected]>
Changes proposed:
dts/bindings/vendor-prefixes.txtwith rt-threat prefixSTM32H7R7L8HxHmicrocontrollerPOWER_SUPPLY_DIRECT_SMPSoperation modeTesting:
Hello World Sample Output
# Required HAL Changes:- Need to addSMPSdefine in hal_stm32 to enable POWER_SUPPLY_DIRECT_SMPS, otherwise this won't buildwith flollowing error
Questions for Maintainers: