cancel
Showing results for 
Search instead for 
Did you mean: 

LWIP on STM32H7 and Cubemx not working

SS.Sagar
Associate III

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.

2 REPLIES 2
Pavel A.
Evangelist III

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

alister
Lead

>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.