Skip to content

gPTP sample does not boot with NUCLEO-H563ZI #96197

@DBS06

Description

@DBS06

Describe the bug

Hello,

currently I am testing gPTP with samples/net/gptp with the STM32 NUCLEO-H563ZI Board.
With Zephyr 4.1 the board does boot up and prints out on the console, with Zephyr 4.2 it does not boot up.

Regression

  • This is a regression.

Steps to reproduce

Steps to reproduce with 4.1.0:

  1. git checkout v4.1.0
  2. west update
  3. west packages pip --install
  4. west build -p always -b nucleo_h563zi/stm32h563xx samples/net/gptp
  5. west flash
*** Booting Zephyr OS build v4.1.0 ***
[00:00:00.052,000] <inf> net_config: Initializing network
[00:00:00.052,000] <inf> net_config: Waiting interface 1 (0x20001328) to be up...
[00:00:00.054,000] <wrn> net_if: iface 0x20001328 is down
[00:00:01.056,000] <wrn> net_gptp: Reset Pdelay requests
[00:00:01.058,000] <wrn> net_if: iface 0x20001328 is down
[00:00:01.672,000] <inf> net_config: Interface 1 (0x20001328) coming up
[00:00:01.672,000] <inf> net_config: IPv4 address: 192.0.2.1
[00:00:01.773,000] <inf> net_config: IPv6 address: 2001:db8::1
[00:00:02.059,000] <wrn> net_gptp: Reset Pdelay requests
[00:00:03.064,000] <wrn> net_gptp: Reset Pdelay requests
[00:00:03.653,000] <inf> phy_mii: PHY (0) Link speed 100 Mb, full duplex
[00:00:04.067,000] <wrn> net_gptp: Reset Pdelay requests

Steps to reproduce with 4.2.0:

  1. git checkout v4.2.0
  2. west update
  3. west packages pip --install
  4. west build -p always -b nucleo_h563zi/stm32h563xx samples/net/gptp
  5. west flash

Does not even show the Boot-Message

Relevant log output

Here the build log with 4.1:

west build -p always -b nucleo_h563zi/stm32h563xx external/zephyr/samples/net/gptp 
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/viephi29/repos/zprojects/external/zephyr/samples/net/gptp
-- CMake version: 3.31.6
-- Found Python3: /home/viephi29/repos/zprojects/.venv/bin/python3 (found suitable version "3.13.5", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: /home/viephi29/.cache/zephyr
-- Zephyr version: 4.1.0 (/home/viephi29/repos/zprojects/external/zephyr)
-- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
-- Board: nucleo_h563zi, qualifiers: stm32h563xx
-- Found host-tools: zephyr 0.17.0 (/home/viephi29/.zephyr_ide/toolchains/zephyr-sdk-0.17.0)
-- Found toolchain: zephyr 0.17.0 (/home/viephi29/.zephyr_ide/toolchains/zephyr-sdk-0.17.0)
-- Found Dtc: /usr/bin/dtc (found suitable version "1.7.2", minimum required is "1.4.6")
-- Found BOARD.dts: /home/viephi29/repos/zprojects/external/zephyr/boards/st/nucleo_h563zi/nucleo_h563zi.dts
-- Generated zephyr.dts: /home/viephi29/repos/zprojects/build/zephyr/zephyr.dts
-- Generated pickled edt: /home/viephi29/repos/zprojects/build/zephyr/edt.pickle
-- Generated devicetree_generated.h: /home/viephi29/repos/zprojects/build/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /home/viephi29/repos/zprojects/build/zephyr/dts.cmake
Parsing /home/viephi29/repos/zprojects/external/zephyr/samples/net/gptp/Kconfig
Loaded configuration '/home/viephi29/repos/zprojects/external/zephyr/boards/st/nucleo_h563zi/nucleo_h563zi_defconfig'
Merged configuration '/home/viephi29/repos/zprojects/external/zephyr/samples/net/gptp/prj.conf'
Configuration saved to '/home/viephi29/repos/zprojects/build/zephyr/.config'
Kconfig header saved to '/home/viephi29/repos/zprojects/build/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: /home/viephi29/.zephyr_ide/toolchains/zephyr-sdk-0.17.0/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/viephi29/.zephyr_ide/toolchains/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Using ccache: /usr/bin/ccache
-- Configuring done (2.6s)
-- Generating done (0.1s)
-- Build files have been written to: /home/viephi29/repos/zprojects/build
-- west build: building application
[1/274] Preparing syscall dependency handling

[2/274] Generating include/generated/zephyr/version.h
-- Zephyr version: 4.1.0 (/home/viephi29/repos/zprojects/external/zephyr), build: v4.1.0
[274/274] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      223296 B         2 MB     10.65%
             RAM:       80352 B       256 KB     30.65%
           SRAM1:          0 GB       256 KB      0.00%
           SRAM2:          0 GB        64 KB      0.00%
           SRAM3:          0 GB       320 KB      0.00%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from /home/viephi29/repos/zprojects/build/zephyr/zephyr.elf for board: nucleo_h563zi

Here the build log with 4.2:

west build -p always -b nucleo_h563zi/stm32h563xx samples/net/gptp
-- west build: making build dir /home/viephi29/zephyrproject/zephyr/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/viephi29/zephyrproject/zephyr/samples/net/gptp
-- CMake version: 3.31.6
-- Found Python3: /home/viephi29/zephyrproject/.venv/bin/python3 (found suitable version "3.13.5", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: /home/viephi29/.cache/zephyr
-- Zephyr version: 4.2.0 (/home/viephi29/zephyrproject/zephyr)
-- Found west (found suitable version "1.3.0", minimum required is "0.14.0")
-- Board: nucleo_h563zi, qualifiers: stm32h563xx
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.17.4 (/home/viephi29/zephyr-sdk-0.17.4)
-- Found toolchain: zephyr 0.17.4 (/home/viephi29/zephyr-sdk-0.17.4)
-- Found Dtc: /home/viephi29/zephyr-sdk-0.17.4/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.7.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/viephi29/zephyrproject/zephyr/boards/st/nucleo_h563zi/nucleo_h563zi.dts
-- Generated zephyr.dts: /home/viephi29/zephyrproject/zephyr/build/zephyr/zephyr.dts
-- Generated pickled edt: /home/viephi29/zephyrproject/zephyr/build/zephyr/edt.pickle
-- Generated devicetree_generated.h: /home/viephi29/zephyrproject/zephyr/build/zephyr/include/generated/zephyr/devicetree_generated.h
Parsing /home/viephi29/zephyrproject/zephyr/samples/net/gptp/Kconfig
Loaded configuration '/home/viephi29/zephyrproject/zephyr/boards/st/nucleo_h563zi/nucleo_h563zi_defconfig'
Merged configuration '/home/viephi29/zephyrproject/zephyr/samples/net/gptp/prj.conf'
Configuration saved to '/home/viephi29/zephyrproject/zephyr/build/zephyr/.config'
Kconfig header saved to '/home/viephi29/zephyrproject/zephyr/build/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: /home/viephi29/zephyr-sdk-0.17.4/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/viephi29/zephyr-sdk-0.17.4/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Using ccache: /usr/bin/ccache
-- Found gen_kobject_list: /home/viephi29/zephyrproject/zephyr/scripts/build/gen_kobject_list.py
-- Configuring done (2.6s)
-- Generating done (0.1s)
-- Build files have been written to: /home/viephi29/zephyrproject/zephyr/build
-- west build: building application
[1/278] Preparing syscall dependency handling

[2/278] Generating include/generated/zephyr/version.h
-- Zephyr version: 4.2.0 (/home/viephi29/zephyrproject/zephyr), build: v4.2.0
[278/278] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      228876 B         2 MB     10.91%
             RAM:       80592 B       256 KB     30.74%
           SRAM1:          0 GB       256 KB      0.00%
           SRAM2:          0 GB        64 KB      0.00%
           SRAM3:          0 GB       320 KB      0.00%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from /home/viephi29/zephyrproject/zephyr/build/zephyr/zephyr.elf for board: nucleo_h563zi

Impact

Showstopper – Prevents release or major functionality; system unusable.

Environment

  • OS: Debian 13
  • Toolchain: zephyr sdk 0.17.0 and 0.17.4
  • Version 4.1.0 and 4.2.0
  • STM32 NUCLEO-H563ZI Board

Additional Context

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions