LWIP on STM32H7 and Cubemx not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-22 8: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.
- Labels:
-
Ethernet
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-22 1:53 PM
Here is a simple LwIP example for Nucleo STM32H743. If it works for you, examine your Cube generated initialization code and merge.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-23 6: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.
