2025-03-18 7:52 AM
Hello,
I'm trying to get an Ethernet ping with NUCLEO-H755ZI-Q to check if everything works. To eliminate any possible errors from my side, and since there are no ready projects for H755, I'm using this project that I've found in this post. I have:
Every time ping does not work and I get "Request timed out." in response. LEDs are blinking on the board and I can debug it correctly, so I assume the program is running as supposed.
What am I supposed to do differently? Do I need to change some network settings on my laptop? Choose different IP address for Nucleo board?
2025-03-18 8:11 AM
Hello @R_A_Costeau and welcome to the community,
I suggest you to read this article: How to create a project for STM32H7 with Ethernet and LwIP stack working
2025-03-18 8:18 AM
Is that a ping from a computer to your STM32, or from the STM32 to a computer?
Are you sure that they are reachable to each other on the network?
Have you used Wireshark (or similar) to see if the ping is actually reaching the pinged device?
2025-03-18 8:24 AM
Thank you,
I have already read this and followed the instructions to verify correctness of the project, but it did not help. There's this fragment
assuming that you configure IP address 192.168.1.1 for the receiving device
but where am I supposed to configure it? In router settings? Somewhere in Windows configuration?
2025-03-18 8:51 AM
It's ping from my computer to STM32.
I'm not sure if they are reachable and I don't know how to check it.
I've just used Wireshark and it seems that ping goes through WiFi to the router and connected devices and not through Ethernet to STM32. May this be the problem? I guess this ping should be visible on Ethernet view in Wireshark. How can I make it reach the STM?
2025-03-18 12:29 PM
@R_A_Costeau wrote:
assuming that you configure IP address 192.168.1.1 for the receiving device
It's the IP address of your device! and in this case it's static IP address.
You need first to disable the DHCP option in lwipopts.h:
/* ---------- DHCP options ---------- */
#define LWIP_DHCP 0 /* DHCP disabled */
And set your IP address I think it's in the main.h:
/*Static IP ADDRESS: IP_ADDR0.IP_ADDR1.IP_ADDR2.IP_ADDR3 */
#define IP_ADDR0 ((uint8_t) 192U)
#define IP_ADDR1 ((uint8_t) 168U)
#define IP_ADDR2 ((uint8_t) 1U)
#define IP_ADDR3 ((uint8_t) 1U)