cancel
Showing results for 
Search instead for 
Did you mean: 

unable to ping ethernet connection with stm32h7

CJ007
Associate
 
9 REPLIES 9
SofLit
ST Employee

Hello @CJ007 and welcome to the community,

You provided few wording for a relative complex subject. Need to provide more details on you environment: which board? which middleware are you using? LWIP? with without RTOS? etc etc ..

See the tips on how to post a thread.

PS: see this article on How to create a project for STM32H7 with Ethernet and LwIP stack working

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
PS:
1 - This is NOT an online support (https://ols.st.com) but a collaborative space.
2 - Please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help/support.

@SofLit wrote:

You provided few wording for a relative complex subject


actually, no wording at all:

AndrewNeil_0-1737971652044.png

 

Hello @SofLit  I am using LWIP stack , not using RTOS . I tried to assign a static IP to my board ( not DHCP ) and tried to ping from my pc . I was unable to ping .I am using NUCLEO-H723Zg development board. 

ASEHST
ST Employee

Hello @CJ007,

Please ensure that your PC and the board are on the same network and subnet.

Additionally, verify that the static IP, subnet mask, and gateway are correctly set in your code.

You can find helpful examples at the following link: STM32CubeH7/Projects/NUCLEO-H723ZG/Applications/LwIP at master · STMicroelectronics/STM32CubeH7

 

With Regards,

If your question is answered, please close this topic by clicking "Accept as Solution".

Hello @CJ007 ,

Here is an example of ping working on H723 board without RTOS and without DHCP.
Regards

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hello @ASEHST Pc and board are on the same network and subnet. Also the static ip , subnet mask and gateway is correctly set in the code . Ethernet callback is coming and netlink is setup , physical layer  connection is also established , still unable to ping

Hello @STea  This example code is also not working . Still unable to ping 

 

CJ007_0-1738035736454.png

It is showing like this

Hello @CJ007 ,

Have you changed the IP address in your code accordingly by default it is set to 192.168.1.15 in lwip.c file.in fact, this example is working and has been tested multiple times.

Regards

 

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.