cancel
Showing results for 
Search instead for 
Did you mean: 

nucleo-F746 ethrnet, lwip configıration

HS
Associate II

Hi,

I am using Nucleo F746 eval board. I configured ethernet and lwip. But I can't get ping. "Reply from 169.254.255.144: Destination host unreachable." I get feedback like: My ETH and Lwip configurations are below. Can you help with this issue?

HS_1-1695883021586.png

HS_2-1695883048330.png

HS_3-1695883068608.png

HS_4-1695883099184.png

HS_5-1695883112987.png

HS_6-1695883133496.png

HS_7-1695883147832.png

HS_8-1695883164586.png

 

 

 

 

 

 

 

 

 

8 REPLIES 8
Issamos
Lead II

Hello @HS  

I suggest you to start from this exemple's configuration.

Best regards.

II

HS
Associate II

Hi,

There is no ios file in the example in this link and I think I made a mistake here. How can I find the ioc file?

Open the project in CubeIDE and then in the main.c compare the configuration in this project to your configurations. 

Best regards.

II

KDJEM.1
ST Employee

Hello @HS ,

The STM32F746xx devices are based on the high-performance ARM®Cortex®-M7, for that it is recommended to configure cortex-M7:

  • Enable ICache and DCache.
  • Enable memory protection unit (MPU) in “Background Region Privileged access only + MPU Disabled ...” mode. Configure regions according to the picture below:

 

KDJEM1_0-1695893866047.png

Could you please check the MPU configuration?

Kaouthar

 

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.

LCE
Principal

Unless he knows about cache handling, I'd say that turning OFF the caches would be the easier path for a start.

I use F746_Discovery, i follow your recomendation about MPU and LDCache, and the configuration before about LwIP. In the main.c i have added:

extern struct netif gnetif;

while(1)

{ ethernetif_input(&gnetif);

sys_check_timeouts();

}

In the pc i made ping 192.168.000.123 but no have answer of the F746, some can lack here ?

I also ran the program LwIP_HTTP_Server_Netconn_RTOS and yes work, can see the ping, the http web

and LCD

 

 

LCE
Principal

At least you have the example working, then go through that code and compare to your own.

You'll learn a lot about lwip...

RMasi.19
Associate II

i see the example LwIP_HTTP_Server_Netconn_RTOS the call LwIP are mixed with lcd and os function, i search some simple for start of CubeMX or .ioc, because these is the purpose of these graphical configuration, make simple the management of the pheriperal.