cancel
Showing results for 
Search instead for 
Did you mean: 

Ethernet Lwip Ping

HexatronicOmid
Associate II

Hi,

I want to set up the Ethernet peripheral of the STM32H743 microcontroller using lwIP, but I’m facing a problem and I can’t get a ping response. I have reviewed some codes, but they don’t fully explain the cause of the issue. Does anyone have experience with this problem and can provide the correct configuration/settings?

1 ACCEPTED SOLUTION

Accepted Solutions
STackPointer64
ST Employee

Hello @HexatronicOmid, and welcome to ST community,

Attached is a project for the NUCLEO-H753 (which is pin-to-pin compatible with the NUCLEO-H743, except for the crypt module). You can compare configurations and have a working project. Please make sure to add the proper linker file configuration to your project. Let me know if you need further assistance.

Best regards,

To improve visibility of answered topics, please click 'Accept as Solution' on the reply that resolved your issue or answered your question.

View solution in original post

6 REPLIES 6
mƎALLEm
ST Employee

Hello,

Please refer to this knowledge base article: How to create a project for STM32H7 with Ethernet and LwIP stack

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.
mbarg.1
Lead

please set mac to 00:00:00:12:33:44, ip to 192.168.1.1 and change all other 128 Ethernet and clock settings according to IDE board setting.

MStackDev_376
Associate III

Hi,
You can try to run a Mongoose example to compare with your project and to determine if the issue is directly related to your lwip configuration or something else. Go to https://mongoose.ws/wizard/#/output?board=h743&ide=CubeIDE&rtos=baremetal&file=README.md and select the destination directory from the settings tab to download this project to your local machine. Then, open it with CubeIDE, build the project and flash the binary to your board. You should then see the logs on the serial console, such as the PHY status, network link status and IP address if successfully connected to the network (you can then ping the IP address and see if it works).

STackPointer64
ST Employee

Hello @HexatronicOmid, and welcome to ST community,

Attached is a project for the NUCLEO-H753 (which is pin-to-pin compatible with the NUCLEO-H743, except for the crypt module). You can compare configurations and have a working project. Please make sure to add the proper linker file configuration to your project. Let me know if you need further assistance.

Best regards,

To improve visibility of answered topics, please click 'Accept as Solution' on the reply that resolved your issue or answered your question.

Thank you for your guidance, I managed to solve it and everything is OK now. I would like to implement Modbus TCP/IP — do you have any recommended libraries or resources for this?


@HexatronicOmid wrote:

Thank you for your guidance, I managed to solve it and everything is OK now. I would like to implement Modbus TCP/IP — do you have any recommended libraries or resources for this?


Hello,

That's another question, so please mark as solution the post that has answered your question or guided you to the solution and post an new question for ModBus.

Thank you for your understanding.

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.