cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H743ZIT6 lwip

sumanga
Associate II

STM32H743ZIT6 LwIP - Ping Working in Example but Fails in My Own Project - Need Step-by-Step Help]

Hi everyone,

I am working with STM32H743ZIT6 and trying to implement basic Ethernet communication using LwIP. I downloaded the STM32CubeH7 package, and using the default LwIP example, I can successfully ping my STM32 board from my PC — no issues there.

However, when I try to replicate the same configuration in my own project, I cannot get ping to work. I suspect I am missing some configuration step or detail, even though I tried to match everything.


 

Details:

1. MCU: STM32H743ZIT6
2. Development Environment: STM32CubeIDE
3.LwIP Version: Provided with latest STM32CubeH7 package
4. PHY: LAN8742
5.Clock Configuration: HSE 25 MHz

, proper PLL setup
6.LwIP Example: LwIP_Ethernet example — works fine, I can ping
7.My Own Project: Same clock setup, same LwIP stack, but ping doesn't work

 

1 ACCEPTED SOLUTION

Accepted Solutions

Could you please provide your STM32CubeMX configuration file (.ioc) along with your main.c file? This will allow me to review them and help identify the possible cause of the problem.

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
TDK
Super User

What is different between your project and the example project? Start there. Do a code diff. No code presented.

If you feel a post has answered your question, please click "Accept as Solution".

https://github.com/stm32-hotspot/STM32H7-LwIP-Examples

I use this example and It was successfully ping 

I want to learn how to config step by step please can I get any document .

 

STackPointer64
ST Employee

Hello @sumanga, and welcome to the ST community!

Have you tried following the knowledge base guide linked to the GitHub project you used?. The guide provides step-by-step instructions to help you create and configure your own LwIP application. If you encounter any issues, I will be happy to assist you.

Best regards,

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

dear STackPointer64

I tried implementing LwIP on my STM32 using the code from the official ST GitHub repository. When I directly downloaded and flashed the precompiled binary or full project from GitHub, everything worked fine — I could ping the board without issues.

However, when I followed all the instructions provided on GitHub to set up and regenerate the project (for example, through STM32CubeMX and STM32CubeIDE), the project compiles, but I cannot ping the board anymore. I made sure to carefully follow all the setup steps exactly as mentioned.

Is there something missing or any known issue when regenerating the project via CubeMX? I would appreciate any advice or guidance.

Thank you in advance!

Could you please provide your STM32CubeMX configuration file (.ioc) along with your main.c file? This will allow me to review them and help identify the possible cause of the problem.

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

After long time It is working properly 

Thank you for your help.

But In this code I also use DDS with DMA double buffer technique for generate square pulse But lwip is working well,DDS is lag(less than required frequency E:X: in this i try to generate 250Khz frequency but it generate 2/3*250Khz(167.167Khz) only .