Skip to content

Portenta H7: Ethernet not working #112

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

Open
razvanphp opened this issue Apr 23, 2025 · 1 comment
Open

Portenta H7: Ethernet not working #112

razvanphp opened this issue Apr 23, 2025 · 1 comment

Comments

@razvanphp
Copy link

Is this supposed to work?

#include <Ethernet.h>

byte mac[] = { 0xA8, 0x61, 0x0A, 0xAE, 0x44, 0xE0 };
IPAddress ip(10, 30, 0, 3);

void setup() {
  Ethernet.begin(mac, ip);
}

void loop() {}

For me it is compiled and uploaded, but the IP is not responding to ping.

I see some related issues in the main zephyr project, but not sure if those are included in the arduino core fork:

zephyrproject-rtos/zephyr@d863343 - boards: arduino: portenta_h7: Enable Ethernet and USB-HS Support
zephyrproject-rtos/zephyr#79589 - No network inface found when enabling ethernet with the "Arduino portenta H7 board" and the "Portenta Hat Carrier" shield

Thank you!

@razvanphp
Copy link
Author

Do we need to add

&mac {
	status = "okay";
	pinctrl-0 = < &eth_ref_clk_pa1
		      &eth_crs_dv_pa7
		      &eth_rxd0_pc4
		      &eth_rxd1_pc5
		      &eth_tx_en_pg11
		      &eth_txd1_pg12
		      &eth_txd0_pg13 >;
	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";
	};
};

to
https://github.com/arduino/ArduinoCore-zephyr/blob/arduino/variants/arduino_portenta_h7_stm32h747xx_m7/arduino_portenta_h7_stm32h747xx_m7.overlay
?

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

No branches or pull requests

1 participant