2026-05-30 8:38 PM
Hi,
I've spent about 3 days trying to get any form of ping out of examples for both a NUCLEO-H755ZI-Q and an STM32F779I-EVAL. There's much less documentation for STM32F779I-EVAL so I've swapped back to the NUCLEO-H755ZI-Q.
I found this thread which seems promising, however I'm confused on the exact solution.
This is using this project, from this post.
In the thread, the person encountering the issue solves it on advice from @mƎALLEm (can't tag them due to their username). They tell them to change an IP address in the code to 192.168.1.1 and it solves the problem for them. This change supposedly happens in main.h but the commenter doesn't seem certain on that.
I'm confused because the original project sets the IP address to 192.168.2.18 in lwip.c (it claims to be 192.168.2.120 in the readme but this doesn't look to be true). This is the IP address of the microcontroller itself.
No one ever mentions swapping from 192.168.2.X subnet to 192.168.1.X subnet. I think the original poster of the thread was confused about configuring Ethernet settings within Windows.
I'm just very confused with every step of this. Configuring a new project to enable Ethernet and lwIP is complex due to STM32CubeIDE not setting memory addresses appropriately, this project by AngryCarrot61 looks helpful and would save me a lot of trouble but I cannot get it to work.
Should I be keeping the microcontroller IP as 192.168.2.18? Setting my PC up as 192.168.2.1? Do I need to amend any code in the STM32 project once this is achieved?
I'll attach my project. As it stands, lwip.c contains an IP address definition for 192.168.2.18 (as members of IP_ADDRESS), main.h now contains an IP address definition for 192.168.2.1 (as IP_ADDR0, IP_ADDR1, IP_ADDR2, and IP_ADDR3). This change to main.h is on advice from the thread. I assume this definition is to allow my PC (192.168.2.1) to speak to it?
No matter what I do, this device will not respond to
ping 192.168.2.18I've even bought a Crossover ethernet cable at this point.
This is really important to me so I'd appreciate any help as quickly as you can if you could.
Thank you a lot