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

samples/net/sockets/echo_server/ sample.net.sockets.echo_server.usbnet fails to build for stm32h747i_disco/stm32h747xx/m7 on main #72433

Closed
aescolar opened this issue May 7, 2024 · 3 comments · Fixed by #72445
Labels
bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug Regression Something, which was working, does not anymore

Comments

@aescolar
Copy link
Member

aescolar commented May 7, 2024

Describe the bug
samples/net/sockets/echo_server/ fails to build for stm32h747i_disco/stm32h747xx/m7

To Reproduce
Steps to reproduce the behavior:

  1. twister -p stm32h747i_disco/stm32h747xx/m7 -T samples/net/sockets/echo_server/ -s sample.net.sockets.echo_server.usbnet
  2. See error

Expected behavior
No build errors

Impact
main CI failing blocking PRs which trigger this sample/boards combination

Logs and console output
https://github.com/zephyrproject-rtos/zephyr/actions/runs/8984763903/job/24679138638?pr=68127

Environment (please complete the following information):

  • OS: Linux (CI)
  • Toolchain (e.g Zephyr SDK, ...): Zephyr SDK
  • Commit SHA or Version used: Main as of now 4d406b1

Additional context
Introduced by #71012
Bisected to ac165f6

@aescolar aescolar added bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug Regression Something, which was working, does not anymore labels May 7, 2024
@aescolar
Copy link
Member Author

aescolar commented May 7, 2024

CC @spectrum70

@aescolar
Copy link
Member Author

aescolar commented May 7, 2024

CC @erwango @FRASTM

@aescolar aescolar changed the title samples/net/sockets/echo_server/ -s sample.net.sockets.echo_server.usbnet fails to build for stm32h747i_disco/stm32h747xx/m7 on main samples/net/sockets/echo_server/ sample.net.sockets.echo_server.usbnet fails to build for stm32h747i_disco/stm32h747xx/m7 on main May 7, 2024
@foss0guru
Copy link

Hi @aescolar the following patch solves the issue

--- a/boards/st/stm32h747i_disco/stm32h747i_disco_stm32h747xx_m7.dts
+++ b/boards/st/stm32h747i_disco/stm32h747i_disco_stm32h747xx_m7.dts
@@ -130,9 +130,7 @@
         */
        status = "okay";
        pinctrl-0 = <&eth_ref_clk_pa1
-                    &eth_mdio_pa2
                     &eth_crs_dv_pa7
-                    &eth_mdc_pc1
                     &eth_rxd0_pc4
                     &eth_rxd1_pc5
                     &eth_tx_en_pg11
@@ -141,6 +139,18 @@
        pinctrl-names = "default";
 };

+&mdio {
+       status = "okay";
+       pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
+       pinctrl-names = "default";
+
+       ethernet-phy@0 {
+               compatible = "ethernet-phy";
+               reg = <0x00>;
+               status = "okay";
+       };
+};
+
 &rng {
        status = "okay";
 };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug Regression Something, which was working, does not anymore
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants