Can't make Ethernet work for STM32H757I-EVAL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-28 8:42 AM - last edited on ‎2025-05-28 12:36 PM by Pavel A.
Hello,
I followed https://community.st.com/t5/stm32-mcus/how-to-create-a-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308 tutorial from the scratch to the end, including the Hello UDP part, and adding the "ETH CODE" code.
However, I can't ping my board.
After some debug, I found that I am locked in HAL_MspInit.
I tried this on 2 eval boards, with same results. I do not have further ideas to try.
Please find attached my projects.
Also, I wanted to know if FreeRTOS is mandatory for a project using Ethernet ?
If somebody have a "plug and play" project for STM32H757, I would be happy to try it out.
Thank you very much,
Matteo
Solved! Go to Solution.
- Labels:
-
Ethernet
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-03 2:10 AM
Hello,
I was able to step into your code and reached StartDefaultTask().
I don't know what happens on your board. As you are using only CM7, I suggest to comment these lines in your code:
timeout = 0xFFFF;
while((__HAL_RCC_GET_FLAG(RCC_FLAG_D2CKRDY) != RESET) && (timeout-- > 0));
if ( timeout < 0 )
{
Error_Handler();
}
timeout = 0xFFFF;
while((__HAL_RCC_GET_FLAG(RCC_FLAG_D2CKRDY) == RESET) && (timeout-- > 0));
if ( timeout < 0 )
{
Error_Handler();
}
and retry ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-03 5:54 AM
Hello @mÆŽALLEm ,
I commented these lines, and exactly same issues.
Indeed, when I am not flashing CM4 before flashing CM7, I need to comment these lines.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-03 6:03 AM
I tested your attached project and I can step into StartDefaultTask().
So check your hardware especially if someone else used the board before you and modified it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-03 6:07 AM
Thank you @mÆŽALLEm
Just to be sure :
I am using stm32H757I-EVAL. You are also using it ?
Could you tell me your jumper positions ?
I tried with 2 different boards, with same results, so, if it is from hardware, it is more likely to be from jumper or other configurations, than broken hardware?
Thank you,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-03 6:30 AM
Used the same board as yours: STM32H757I-EVAL.
For jumper positions I suggest you to check the user manual of the board.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-03 6:35 AM
Ok, thanks. I already checked it.
Other than the jumper position, do you have any idea ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-03 6:39 AM
At this stage I suggest to run a very simple project from the STM32CubeH7 package: https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/STM32H747I-EVAL/Examples/GPIO/GPIO_EXTI
At least to be sure you can pass the system clock configuration stage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-04 6:57 AM
Hello,
Can't make work the project since there is not stm32h7xx_hal.h :
../../../CM7/Inc/main.h:24:10: fatal error: stm32h7xx_hal.h: No such file or directory
I guess I am missing something.
By the way, I already used a project with SDMMC, and it worked, so I assume my board is working correctly ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-04 7:02 AM
Please download the Cube H7 package from this link and try again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-05 4:47 AM
Hello @mÆŽALLEm
Managed to make the GPIO project works. However, I still can't reach Hello UDP part in my code, having
Break at address "0x1ff0a754" with no debug information available, or outside of program code.
when I run my code
