cancel
Showing results for 
Search instead for 
Did you mean: 

Can't make Ethernet work for STM32H757I-EVAL

Matteo-uC
Associate III

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

24 REPLIES 24

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 ..

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 @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

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.

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.

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,

mÆŽALLEm
ST Employee

Used the same board as yours: STM32H757I-EVAL.

For jumper positions I suggest you to check the user manual of the board.

 

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.

@mÆŽALLEm 

Ok, thanks. I already checked it.
Other than the jumper position, do you have any idea ?

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. 

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.

@mÆŽALLEm 

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 ?

Please download the Cube H7 package from this link and try again.

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 @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