Skip to main content
pshin.2
Associate III
December 22, 2022
Solved

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 h

  • December 22, 2022
  • 3 replies
  • 1943 views

..

This topic has been closed for replies.
Best answer by MM..1

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

3 replies

Technical Moderator
December 22, 2022

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
pshin.2
pshin.2Author
Associate III
December 22, 2022

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.

mƎALLEm
Technical Moderator
December 22, 2022

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 "Best answer" on the reply which solved your issue or answered your question.
MM..1
MM..1Best answer
Chief III
December 22, 2022

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

Tesla DeLorean
Guru
December 22, 2022

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 VenmoUp vote any posts that you find helpful, it shows what's working..