2021-05-22 08:23 AM
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.
2021-05-22 01:53 PM
Here is a simple LwIP example for Nucleo STM32H743. If it works for you, examine your Cube generated initialization code and merge.
2021-05-23 06:36 PM
>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.