Check and configure IP address on STM32H7 using LWIP
I’m currently working on an STM32 project with Ethernet connectivity and LwIP. I want to know the IP address of the STM32 while configuring the network settings in CubeIDE.
Here’s my setup:
-
STM32 is connected to a router via an Ethernet cable and my laptop is also connected to same router via wifi.
-
LwIP is being used as the TCP/IP stack.
-
In LwIP settings, there is an option to choose DHCP or Static IP.
My questions are:
-
If I enable DHCP, how can I find out the dynamically assigned IP of the STM32?
-
If I use a Static IP, what are the correct parameters to set (IP, Subnet Mask, Gateway) to ensure the STM32 is reachable from my PC?
-
Are there any tips or methods to quickly verify the STM32’s IP on the network, such as through serial print, ping, or a network scanner?
