STM32H743ZIT6 lwip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-27 11:11 AM
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
Solved! Go to Solution.
- Labels:
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-30 6:35 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-27 1:31 PM - edited ‎2025-06-27 1:32 PM
What is different between your project and the example project? Start there. Do a code diff. No code presented.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-27 1:45 PM
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 .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-30 2:19 AM
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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-30 4:37 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-30 6:35 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-30 10:27 PM
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 .
