Skip to content

Conversation

newbie-jiang
Copy link

Support ART-PI (STM32H750XB)

sample pass

  • west build -b art_pi samples/basic/blinky

  • west build -b art_pi samples/hello_world

  • west build -b art_pi samples/basic/button

  • west build -b art_pi samples/drivers/spi_flash

  • west build -b art_pi samples/drivers/memc

====================================================
*** Booting Zephyr OS build v4.2.0-3809-g1d6b6759aa1a ***
Hello World! art_pi/stm32h750xx

====================================================

*** Booting Zephyr OS build v4.2.0-3810-g9fe29f98ae2d ***

spi-nor-flash@0 SPI flash testing

Perform test on single sector
Test 1: Flash erase
Flash erase succeeded!

Test 2: Flash write
Attempting to write 4 bytes
Data read matches data written. Good!!

Perform test on multiple consecutive sectors
Test 1: Flash erase
Flash erase succeeded!

Test 2: Flash write
Attempting to write 4 bytes at offset 0xff000
Data read matches data written. Good!!
Attempting to write 4 bytes at offset 0x100000
Data read matches data written. Good!!

====================================================
......

Check (6139/6143) passed!
Check (6140/6143) passed!
Check (6141/6143) passed!
Check (6142/6143) passed!
Check (6143/6143) passed!
First 1KB of Data in memory:

00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f
80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f
90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f
a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af
b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf
c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf
d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df
e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef
f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff

00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f
80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f
90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f
a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af
b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf
c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf
d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df
e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef
f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff

00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f
80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f
90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f
a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af
b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf
c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf
d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df
e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef
f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff

00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f
80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f
90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f
a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af
b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf
c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf
d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df
e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef
f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff

Read data matches written data

====================================================

Copy link

Hello @newbie-jiang, 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. 😊

newbie-jiang added a commit to newbie-jiang/zephyr that referenced this pull request Sep 17, 2025
support art_pi   

mcuboot  pr :
zephyrproject-rtos/mcuboot#136

art_pi pr  :
zephyrproject-rtos#96139


building cmd

```
west build -p always -b art_pi samples/sysbuild/with_mcuboot \
--sysbuild -- \
-DSB_CONFIG_BOOTLOADER_MCUBOOT=y

```

building 

```
-- Zephyr version: 4.2.99 (/home/hdj/zephyrproject/zephyr), build: v4.2.0-3810-g9fe29f98ae2d
[286/286] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       43024 B       128 KB     32.82%
             RAM:       87296 B       512 KB     16.65%
          EXTMEM:          0 GB        64 MB      0.00%
           SRAM1:          0 GB       128 KB      0.00%
           SRAM2:          0 GB       128 KB      0.00%
           SRAM4:          0 GB        64 KB      0.00%
            DTCM:          0 GB       128 KB      0.00%
            ITCM:          0 GB        64 KB      0.00%
           SRAM3:          0 GB        32 KB      0.00%
          SDRAM1:          0 GB         6 MB      0.00%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from /home/hdj/zephyrproject/zephyr/build/mcuboot/zephyr/zephyr.elf for board: art_pi
[11/16] Performing build step for 'with_mcuboot'
[1/148] Preparing syscall dependency handling

[2/148] Generating include/generated/zephyr/version.h
-- Zephyr version: 4.2.99 (/home/hdj/zephyrproject/zephyr), build: v4.2.0-3810-g9fe29f98ae2d
[148/148] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       20048 B    2096768 B      0.96%
             RAM:        4608 B       512 KB      0.88%
          EXTMEM:          0 GB        64 MB      0.00%
           SRAM1:          0 GB       128 KB      0.00%
           SRAM2:          0 GB       128 KB      0.00%
           SRAM4:          0 GB        64 KB      0.00%
            DTCM:          0 GB       128 KB      0.00%
            ITCM:          0 GB        64 KB      0.00%
           SRAM3:          0 GB        32 KB      0.00%
          SDRAM1:          0 GB         6 MB      0.00%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from /home/hdj/zephyrproject/zephyr/build/with_mcuboot/zephyr/zephyr.elf for board: art_pi
image.py: sign the payload
image.py: sign the payload
[16/16] Completed 'with_mcuboot'

```

download

```
hdj@hdj-virtual-machine:~/zephyrproject/zephyr$ west flash
-- west flash: rebuilding
[0/6] Performing build step for 'with_mcuboot'
ninja: no work to do.
[1/6] Performing build step for 'mcuboot'
ninja: no work to do.
[6/6] Completed 'mcuboot'
-- west flash: using runner stm32cubeprogrammer
      -------------------------------------------------------------------
                        STM32CubeProgrammer v2.20.0                  
      -------------------------------------------------------------------

ST-LINK SN  : 0669FF505750888667051238
ST-LINK FW  : V2J43M28
Board       : --
Voltage     : 3.25V
SWD freq    : 4000 KHz
Connect mode: Under Reset
Reset mode  : Hardware reset
Device ID   : 0x450
Revision ID : Rev V
Device name : STM32H7xx
Flash size  : 128 KBytes
Device type : MCU
Device CPU  : Cortex-M7
BL Version  : 0x90



Opening and parsing file: zephyr.hex


Memory Programming ...
  File          : zephyr.hex
  Size          : 42.02 KB 
  Address       : 0x08000000


Erasing memory corresponding to segment 0:
Download in Progress:
[==================================================] 100% 

File download complete
Time elapsed during download operation: 00:00:09.268

RUNNING Program ... 
  Address:      : 0x8000000
Application is running, Please Hold on...
Start operation achieved successfully
-- west flash: using runner stm32cubeprogrammer
      -------------------------------------------------------------------
                        STM32CubeProgrammer v2.20.0                  
      -------------------------------------------------------------------

ST-LINK SN  : 0669FF505750888667051238
ST-LINK FW  : V2J43M28
Board       : --
Voltage     : 3.25V
SWD freq    : 4000 KHz
Connect mode: Under Reset
Reset mode  : Hardware reset
Device ID   : 0x450
Revision ID : Rev V
Device name : STM32H7xx
Flash size  : 128 KBytes
Device type : MCU
Device CPU  : Cortex-M7
BL Version  : 0x90



Opening and parsing file: zephyr.signed.hex


Memory Programming ...
  File          : zephyr.signed.hex
  Size          : 19.91 KB 
  Address       : 0x90000000


Erasing memory corresponding to segment 0:
Erasing external memory sectors [0 4]
Download in Progress:
[==================================================] 100% 

File download complete
Time elapsed during download operation: 00:00:01.051

RUNNING Program ... 
  Address:      : 0x8000000
Application is running, Please Hold on...
Start operation achieved successfully

```

log

```
*** Booting MCUboot v2.2.0-118-gaa4fa2b6e173 ***
*** Using Zephyr OS build v4.2.0-3810-g9fe29f98ae2d ***
*** Booting Zephyr OS build v4.2.0-3810-g9fe29f98ae2d ***
Address of sample 0x90000000
Hello sysbuild with mcuboot! art_pi
```
@newbie-jiang
Copy link
Author

with_mcuboot

building cmd

west build -p always -b art_pi samples/sysbuild/with_mcuboot \
--sysbuild -- \
-DSB_CONFIG_BOOTLOADER_MCUBOOT=y

building

-- Zephyr version: 4.2.99 (/home/hdj/zephyrproject/zephyr), build: v4.2.0-3810-g9fe29f98ae2d
[286/286] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       43024 B       128 KB     32.82%
             RAM:       87296 B       512 KB     16.65%
          EXTMEM:          0 GB        64 MB      0.00%
           SRAM1:          0 GB       128 KB      0.00%
           SRAM2:          0 GB       128 KB      0.00%
           SRAM4:          0 GB        64 KB      0.00%
            DTCM:          0 GB       128 KB      0.00%
            ITCM:          0 GB        64 KB      0.00%
           SRAM3:          0 GB        32 KB      0.00%
          SDRAM1:          0 GB         6 MB      0.00%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from /home/hdj/zephyrproject/zephyr/build/mcuboot/zephyr/zephyr.elf for board: art_pi
[11/16] Performing build step for 'with_mcuboot'
[1/148] Preparing syscall dependency handling

[2/148] Generating include/generated/zephyr/version.h
-- Zephyr version: 4.2.99 (/home/hdj/zephyrproject/zephyr), build: v4.2.0-3810-g9fe29f98ae2d
[148/148] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       20048 B    2096768 B      0.96%
             RAM:        4608 B       512 KB      0.88%
          EXTMEM:          0 GB        64 MB      0.00%
           SRAM1:          0 GB       128 KB      0.00%
           SRAM2:          0 GB       128 KB      0.00%
           SRAM4:          0 GB        64 KB      0.00%
            DTCM:          0 GB       128 KB      0.00%
            ITCM:          0 GB        64 KB      0.00%
           SRAM3:          0 GB        32 KB      0.00%
          SDRAM1:          0 GB         6 MB      0.00%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from /home/hdj/zephyrproject/zephyr/build/with_mcuboot/zephyr/zephyr.elf for board: art_pi
image.py: sign the payload
image.py: sign the payload
[16/16] Completed 'with_mcuboot'

download

hdj@hdj-virtual-machine:~/zephyrproject/zephyr$ west flash
-- west flash: rebuilding
[0/6] Performing build step for 'with_mcuboot'
ninja: no work to do.
[1/6] Performing build step for 'mcuboot'
ninja: no work to do.
[6/6] Completed 'mcuboot'
-- west flash: using runner stm32cubeprogrammer
      -------------------------------------------------------------------
                        STM32CubeProgrammer v2.20.0                  
      -------------------------------------------------------------------

ST-LINK SN  : 0669FF505750888667051238
ST-LINK FW  : V2J43M28
Board       : --
Voltage     : 3.25V
SWD freq    : 4000 KHz
Connect mode: Under Reset
Reset mode  : Hardware reset
Device ID   : 0x450
Revision ID : Rev V
Device name : STM32H7xx
Flash size  : 128 KBytes
Device type : MCU
Device CPU  : Cortex-M7
BL Version  : 0x90



Opening and parsing file: zephyr.hex


Memory Programming ...
  File          : zephyr.hex
  Size          : 42.02 KB 
  Address       : 0x08000000


Erasing memory corresponding to segment 0:
Download in Progress:
[==================================================] 100% 

File download complete
Time elapsed during download operation: 00:00:09.268

RUNNING Program ... 
  Address:      : 0x8000000
Application is running, Please Hold on...
Start operation achieved successfully
-- west flash: using runner stm32cubeprogrammer
      -------------------------------------------------------------------
                        STM32CubeProgrammer v2.20.0                  
      -------------------------------------------------------------------

ST-LINK SN  : 0669FF505750888667051238
ST-LINK FW  : V2J43M28
Board       : --
Voltage     : 3.25V
SWD freq    : 4000 KHz
Connect mode: Under Reset
Reset mode  : Hardware reset
Device ID   : 0x450
Revision ID : Rev V
Device name : STM32H7xx
Flash size  : 128 KBytes
Device type : MCU
Device CPU  : Cortex-M7
BL Version  : 0x90



Opening and parsing file: zephyr.signed.hex


Memory Programming ...
  File          : zephyr.signed.hex
  Size          : 19.91 KB 
  Address       : 0x90000000


Erasing memory corresponding to segment 0:
Erasing external memory sectors [0 4]
Download in Progress:
[==================================================] 100% 

File download complete
Time elapsed during download operation: 00:00:01.051

RUNNING Program ... 
  Address:      : 0x8000000
Application is running, Please Hold on...
Start operation achieved successfully

log

*** Booting MCUboot v2.2.0-118-gaa4fa2b6e173 ***
*** Using Zephyr OS build v4.2.0-3810-g9fe29f98ae2d ***
*** Booting Zephyr OS build v4.2.0-3810-g9fe29f98ae2d ***
Address of sample 0x90000000
Hello sysbuild with mcuboot! art_pi

};



Copy link
Contributor

Choose a reason for hiding this comment

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

@newbie-jiang
Copy link
Author

Running CI Tests Locally and Delete #96139 (comment)

Running CI Tests Locally

hdj@hdj-virtual-machine:~/zephyrproject/zephyr$ ./scripts/ci/check_compliance.py -c upstream/main..
Running ImageSize tests in /home/hdj/zephyrproject/zephyr ...
Running Identity tests in /home/hdj/zephyrproject/zephyr ...
Running Gitlint tests in /home/hdj/zephyrproject/zephyr ...
Running Nits tests in /home/hdj/zephyrproject/zephyr ...
Running SysbuildKconfigBasic tests in /home/hdj/zephyrproject/zephyr ...
Running KconfigBasic tests in /home/hdj/zephyrproject/zephyr ...
Running Ruff tests in /home/hdj/zephyrproject/zephyr ...
Running KconfigHWMv2 tests in /home/hdj/zephyrproject/zephyr ...
Running ClangFormat tests in /home/hdj/zephyrproject/zephyr ...
Running SphinxLint tests in /home/hdj/zephyrproject/zephyr ...
Running Kconfig tests in /home/hdj/zephyrproject/zephyr ...
Running ZephyrModuleFile tests in /home/hdj/zephyrproject/zephyr ...
Running Checkpatch tests in /home/hdj/zephyrproject/zephyr ...
Running MaintainersFormat tests in /home/hdj/zephyrproject/zephyr ...
Running BinaryFiles tests in /home/hdj/zephyrproject/zephyr ...
Running Pylint tests in /home/hdj/zephyrproject/zephyr ...
Running TextEncoding tests in /home/hdj/zephyrproject/zephyr ...
Running GitDiffCheck tests in /home/hdj/zephyrproject/zephyr ...
Running SysbuildKconfigBasicNoModules tests in /home/hdj/zephyrproject/zephyr ...
Running PythonCompat tests in /home/hdj/zephyrproject/zephyr ...
Running SysbuildKconfig tests in /home/hdj/zephyrproject/zephyr ...
Running DevicetreeBindings tests in /home/hdj/zephyrproject/zephyr ...
Running KeepSorted tests in /home/hdj/zephyrproject/zephyr ...
Running KconfigBasicNoModules tests in /home/hdj/zephyrproject/zephyr ...
Running BoardYml tests in /home/hdj/zephyrproject/zephyr ...
Running YAMLLint tests in /home/hdj/zephyrproject/zephyr ...
Running ModulesMaintainers tests in /home/hdj/zephyrproject/zephyr ...

Complete results in compliance.xml

Delete

file art_pi2_defconfig CONFIG_POWER_SUPPLY_DIRECT_SMPS=y

update ART-Pi board files.

Signed-off-by: Dejiang He <[email protected]>
@newbie-jiang
Copy link
Author

Please reopen the review, thank you.

@newbie-jiang
Copy link
Author

Run Tests with Twister ERR

INFO - The following issues were found (showing the top 10 items):
INFO - 1) sample.sensor.die_temperature_polling on art_pi/stm32h750xx error (Build failure - undefined reference to `__device_dts_ord_10')
INFO -
INFO - To rerun the tests, call twister using the following commandline:
INFO - west twister -p -s , for example:
INFO -
INFO - west twister -p art_pi/stm32h750xx -s sample.sensor.die_temperature_polling
INFO - or with west:
INFO - west build -p -b art_pi/stm32h750xx samples/sensor/die_temp_polling -T sample.sensor.die_temperature_polling
INFO - -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
INFO - Run completed
Error: Error: failed to run script step: command terminated with non-zero exit code: error executing command [sh -e /__w/_temp/516836c0-9572-11f0-9b33-2d497f711e22.sh], exit code 1
Error: Process completed with exit code 1.
Error: Executing the custom container implementation failed. Please contact your self hosted runner administrator.

update art_pi.dts

enabling a die_temp node breaks the die_temp_polling sample at link time

  • delete die_temp
  • exclude sample.sensor.die_temperature_polling

Please reopen the review, thank you.

update img and index.rst art_pi.yaml.

- img: art_pi.png update art_pi.webp(699x415) size 50kB
- index.rst: Format adjustment and update in accordance with the proposal
- art_pi.yaml: Format adjustment

Signed-off-by: Dejiang He <[email protected]>
@newbie-jiang
Copy link
Author

Thank you for your review.

update

  • img: art_pi.png change art_pi.webp(699x415) size 50kB
  • index.rst: Format adjustment and update in accordance with the proposal
  • art_pi.yaml: Format adjustment

Copy link

@kartben kartben requested review from erwango and nordicjm September 26, 2025 04:48
@newbie-jiang
Copy link
Author

@vcgomes @holtmann

please review thanks ~~~

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.

3 participants