cancel
Showing results for 
Search instead for 
Did you mean: 

Ethernet connectivity issue STM32H7

Aarra.1
Senior

Hello everyone,

I have been working with stm32h747xih6 MCU for a while now.

I'm trying to establish ethernet communication with the MCU.

  if (netif_is_link_up(&gnetif))
  {
    /* When the netif is fully configured this function must be called */
    netif_set_up(&gnetif);
  }
  else
  {
    /* When the netif link is down this function must be called */
    netif_set_down(&gnetif);
  }

My code always goes to the else condition in the above snippet of the code.

I have attached my .IOC file below for reference.

At times when i do arp -a from command terminal my device IP comes on the command prompt but when I try to ping the connection is lost.

Kindly help me out with this issue

1 ACCEPTED SOLUTION

Accepted Solutions
KDJEM.1
ST Employee

Hello @Aarra.1​ ,

I advise you, when you configurated the ethernet project, to get inspired form the steps described in this FAQ: How to create project for STM32H7 with Ethernet and LwIP stack working. This FAQ will help you to configure your project in STM32CubeMX .

Also, you can get started with the example provided here STM32H7-LwIP-Examples.

I hope this help you!

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.

View solution in original post

1 REPLY 1
KDJEM.1
ST Employee

Hello @Aarra.1​ ,

I advise you, when you configurated the ethernet project, to get inspired form the steps described in this FAQ: How to create project for STM32H7 with Ethernet and LwIP stack working. This FAQ will help you to configure your project in STM32CubeMX .

Also, you can get started with the example provided here STM32H7-LwIP-Examples.

I hope this help you!

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.