Skip to main content
Visitor II
September 28, 2023
Question

nucleo-F746 ethrnet, lwip configıration

  • September 28, 2023
  • 5 replies
  • 2073 views

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

 

 

 

 

 

 

 

 

 

    This topic has been closed for replies.

    5 replies

    Graduate II
    September 28, 2023

    Hello @HS  

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

    Best regards.

    II

    HSAuthor
    Visitor II
    September 28, 2023

    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?

    Graduate II
    September 28, 2023

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

    Best regards.

    II

    Technical Moderator
    September 28, 2023

    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

     

    Visitor II
    November 24, 2023

    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

     

     

    Graduate II
    September 28, 2023

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

    Graduate II
    November 27, 2023

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

    You'll learn a lot about lwip...

    Visitor II
    November 28, 2023

    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.