cancel
Showing results for 
Search instead for 
Did you mean: 

Hey I am working on STM nucleo-F429zi and nucleo-H745zi-q . From last one month i trying to ping my nucleo boards via ethernet but i don't reach at my goal . I see forums check different examples and configuration but still facing difficulties ,plz help

pshin.2
Associate II
1 ACCEPTED SOLUTION

Accepted Solutions
MM..1
Chief II

?? ioc is irelevant here. Network stack need understand how it works.

Show your ping command ... have you DHCP server is your RJ45 cable ?

Is your main.h settings ?

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/ 
#define USE_DHCP       /* enable DHCP, if disabled static address is used*/
 
/*Static IP ADDRESS*/
#define IP_ADDR0   (uint8_t) 192
#define IP_ADDR1   (uint8_t) 168
#define IP_ADDR2   (uint8_t) 0
#define IP_ADDR3   (uint8_t) 10

this is from LWip example 429

View solution in original post

6 REPLIES 6
Imen.D
ST Employee

Hello @pshin.2​ and welcome to the Community :)

Did you check this post contains issues and solutions: How to make Ethernet and lwIP working on STM32?

I advise you start from a ready example within STM32CubeH7, and please review this article How to create project for STM32H7 with Ethernet and LwIP stack working

I hope this helps you.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Thanks for replying ! Yes i have already gone through this article but i am still not able to get my difficulties right please suggest me with an alternate method please.

As already suggested by @Imen DAHMEN​ , please start with an existing example provided in STM32CubeH7: for example you can port one of examples under this path to your board: STM32Cube_FW_H7_V1.11.0\Projects\NUCLEO-H743ZI\Applications\LwIP

Also please provide more details about your project to let other members in the community to help you efficiently.

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.

I am trying to ping the ethernet in both of NUCLUEOS with examples provided by STM,

i followed the steps provided by you, but i am still not able to overcome this problem.

Currently i am using CUBE IDE 1.10.1 with latest firmware package.

I have attached .ioc file for your reference

MM..1
Chief II

?? ioc is irelevant here. Network stack need understand how it works.

Show your ping command ... have you DHCP server is your RJ45 cable ?

Is your main.h settings ?

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/ 
#define USE_DHCP       /* enable DHCP, if disabled static address is used*/
 
/*Static IP ADDRESS*/
#define IP_ADDR0   (uint8_t) 192
#define IP_ADDR1   (uint8_t) 168
#define IP_ADDR2   (uint8_t) 0
#define IP_ADDR3   (uint8_t) 10

this is from LWip example 429

Do you work with anyone with related MCU or networking experience who can problem solve or trouble-shoot this with you? A colleague, supervisor or teacher?

Unfortunately "does not work" and "tried everything" aren't really effective diagnostic methods, and convey little detail.

In a month one might have hoped you'd identified some code or network level understanding of what is and isn't happening.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..