cancel
Showing results for 
Search instead for 
Did you mean: 

I cannot use ethernet in NUCLEO-H743ZI2 - ETHERNET LWIP

testbenchmark
Associate III

Hello everyone,

 

I am try to use ethernet in NUCLEO-H743Z2I Board. I am new at this.

I read a lot of article and watch a few videos but I cannot configure and ping test to board.

I also read this article

https://community.st.com/t5/stm32-mcus/how-to-create-a-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308

 

So I will show you my configuration steps and I have a few question

1) Do I have to use MPU?

2) As you can see in the configuration below, I am trying to ping 192.168.0.10 but I can't, what is the reason for this?

 

I am configure the clock 480MHz.

1.png

I am activating RMII

2.png

 Enable the NVIC

3.png

Set the GPIO Pins VERY HIGH

4.png

 

Enable the cache. No MPU Configuration

5.png

Set the IP address and gateway

6.png

 Set the MEM_SIZE 10Kbyte

7.png

After the CUBEMX configuration this is my codes for ping test.

8.png

9.png

 

Can u help me please ?

 

3 REPLIES 3
Pavel A.
Evangelist III

I am new at this.

Ok. Then, the first thing you do is finding a ready example that you can build and run.

Some examples are in the CubeMX libary package. Some are here (with RTOS, more advanced).

Avoid plugging the board into a busy network such as your office LAN. Prefer a small isolated LAN.

Get the example project working on your Nucleo board. It must respond to ping.

Until you get it working do not try to generate new project in CubeMX/IDE and do not change a single line in the code.

Only then compare to the articles and videos. Try to change something. If it breaks revert the changes and think.

 

Do I have to use MPU?

Yes

2) As you can see in the configuration below, I am trying to ping 192.168.0.10 but I can't, what is the reason for this?

Not following the advises above. Build a ready example, connect the board to a network correctly, ping should work.

 

ready example stuck in osKernelStart 

If a ready example fails to work, please give more details. This is a technical forum. We appreciate details.