Skip to main content
Visitor II
May 22, 2021
Question

LWIP on STM32H7 and Cubemx not working

  • May 22, 2021
  • 2 replies
  • 1301 views

I am using STM32H7 MCU and Cubemx ide. I am facing an issue with ethernet connectivity with the Nucleo board which has STM32H743 mcu.

I have configured Connectivity ETH and set the mode to RMII and enabled LWIP from the middleware.

I tried DHCP enable and disable but I could not do established the connection with Nucleo.

with DHCP disable following were changes in IP assignment

IP : 192.168.1.200

Netmask address: 255.255.255.0

Gateway Address: 192.168.1.1

With DHCP enabled I was trying to get the IP as follows,

	 local_SubNet = ip4_addr_get_u32(netif_ip4_netmask(&gnetif));
	 local_Gateway = ip4_addr_get_u32(netif_ip4_gw(&gnetif));
	 local_IP = gnetif.ip_addr.addr;

I have attached .ioc (cubemx configuration) file here. And attached screenshot of the connection in windows pc.

    This topic has been closed for replies.

    2 replies

    Super User
    May 22, 2021

    Here is a simple LwIP example for Nucleo STM32H743. If it works for you, examine your Cube generated initialization code and merge.

    https://community.st.com/s/question/0D53W00000kxHQiSAM/stm32h07-where-can-i-find-a-cubemx-project-with-working-lwip-ethernet-preferred-h753zi-or-any-other-with-rmii-interface

    Explorer
    May 24, 2021

    >I tried DHCP enable and disable but I could not do established the connection with Nucleo.

    What _is_ working?

    Some clues might be found at https://community.st.com/s/question/0D50X0000C6eNNSSQ2/bug-fixes-stm32h7-ethernet.